Hi, This series refactors the xdo_dev_offload_ok() to be global place for drivers to check if their offload can perform encryption for xmit packets. Such common place gives us an option to check MTU and PMTU at one place. Thanks Leon Romanovsky (5): xfrm: delay initialization of offload path till its actually requested xfrm: simplify SA initialization routine xfrm: rely on XFRM offload xfrm: provide common xdo_dev_offload_ok callback implementation xfrm: check for PMTU in tunnel mode for packet offload Documentation/networking/xfrm_device.rst | 3 +- drivers/net/bonding/bond_main.c | 16 ++----- .../net/ethernet/chelsio/cxgb4/cxgb4_main.c | 21 --------- .../inline_crypto/ch_ipsec/chcr_ipsec.c | 16 ------- .../net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 21 --------- drivers/net/ethernet/intel/ixgbevf/ipsec.c | 21 --------- .../marvell/octeontx2/nic/cn10k_ipsec.c | 15 ------ .../mellanox/mlx5/core/en_accel/ipsec.c | 16 ------- .../net/ethernet/netronome/nfp/crypto/ipsec.c | 11 ----- drivers/net/netdevsim/ipsec.c | 11 ----- drivers/net/netdevsim/netdevsim.h | 1 - include/net/xfrm.h | 22 ++++++++- net/xfrm/xfrm_device.c | 47 ++++++++++++++----- net/xfrm/xfrm_output.c | 6 ++- net/xfrm/xfrm_state.c | 40 +++++++--------- net/xfrm/xfrm_user.c | 2 +- 16 files changed, 84 insertions(+), 185 deletions(-) -- 2.48.1