]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: add ipsec offload add and remove SA
authorShannon Nelson <shannon.nelson@oracle.com>
Tue, 19 Dec 2017 23:59:57 +0000 (15:59 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 23 Jan 2018 17:19:02 +0000 (09:19 -0800)
commit18edfc0fe4a0e2f0325e04f9e19a7c7c24fe15b3
tree8f5787d0e505ea31dfbe25c70e08de9419611edc
parent271b0e5ec876b9d43e110cb0b146bd89733cfd3e
ixgbe: add ipsec offload add and remove SA

Add the functions for setting up and removing offloaded SAs (Security
Associations) with the x540 hardware.  We set up the callback structure
but we don't yet set the hardware feature bit to be sure the XFRM service
won't actually try to use us for an offload yet.

The software tables are made up to mimic the hardware tables to make it
easier to track what's in the hardware, and the SA table index is used
for the XFRM offload handle.  However, there is a hashing field in the
Rx SA tracking that will be used to facilitate faster table searches in
the Rx fast path.

Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c