ixgbe: fail to create xfrm offload of IPsec tunnel mode SA
authorAntony Antony <antony@phenome.org>
Wed, 14 Oct 2020 14:17:48 +0000 (16:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:06:16 +0000 (17:06 +0100)
commitee7eac24b5b495f484034cdb2bd7152edc5a985f
treeaa3a4c51b2b5c15b1091ba0fcdce231a6a8ba253
parentcab735320fe92b40d1f69b93a20694117aa2d5a5
ixgbe: fail to create xfrm offload of IPsec tunnel mode SA

commit d785e1fec60179f534fbe8d006c890e5ad186e51 upstream.

Based on talks and indirect references ixgbe IPsec offlod do not
support IPsec tunnel mode offload. It can only support IPsec transport
mode offload. Now explicitly fail when creating non transport mode SA
with offload to avoid false performance expectations.

Fixes: 63a67fe229ea ("ixgbe: add ipsec offload add and remove SA")
Signed-off-by: Antony Antony <antony@phenome.org>
Acked-by: Shannon Nelson <snelson@pensando.io>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
drivers/net/ethernet/intel/ixgbevf/ipsec.c