Skip to content

Commit 63a67fe

Browse files
Shannon NelsonJeff Kirsher
authored andcommitted
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 <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 34c822e commit 63a67fe

File tree

3 files changed

+399
-1
lines changed

3 files changed

+399
-1
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,9 @@ s32 ixgbe_negotiate_fc(struct ixgbe_hw *hw, u32 adv_reg, u32 lp_reg,
10191019
u32 adv_sym, u32 adv_asm, u32 lp_sym, u32 lp_asm);
10201020
#ifdef CONFIG_XFRM_OFFLOAD
10211021
void ixgbe_init_ipsec_offload(struct ixgbe_adapter *adapter);
1022+
void ixgbe_stop_ipsec_offload(struct ixgbe_adapter *adapter);
10221023
#else
10231024
static inline void ixgbe_init_ipsec_offload(struct ixgbe_adapter *adapter) { };
1025+
static inline void ixgbe_stop_ipsec_offload(struct ixgbe_adapter *adapter) { };
10241026
#endif /* CONFIG_XFRM_OFFLOAD */
10251027
#endif /* _IXGBE_H_ */

0 commit comments

Comments
 (0)