mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 13:32:40 -04:00
ixgbe: restore offloaded SAs after a reset
On a chip reset most of the table contents are lost, so must be restored. This scans the driver's ipsec tables and restores both the filled and empty table slots to their pre-reset values. 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>
This commit is contained in:
committed by
Jeff Kirsher
parent
63a67fe229
commit
6d73a1540b
@@ -1020,8 +1020,10 @@ s32 ixgbe_negotiate_fc(struct ixgbe_hw *hw, u32 adv_reg, u32 lp_reg,
|
||||
#ifdef CONFIG_XFRM_OFFLOAD
|
||||
void ixgbe_init_ipsec_offload(struct ixgbe_adapter *adapter);
|
||||
void ixgbe_stop_ipsec_offload(struct ixgbe_adapter *adapter);
|
||||
void ixgbe_ipsec_restore(struct ixgbe_adapter *adapter);
|
||||
#else
|
||||
static inline void ixgbe_init_ipsec_offload(struct ixgbe_adapter *adapter) { };
|
||||
static inline void ixgbe_stop_ipsec_offload(struct ixgbe_adapter *adapter) { };
|
||||
static inline void ixgbe_ipsec_restore(struct ixgbe_adapter *adapter) { };
|
||||
#endif /* CONFIG_XFRM_OFFLOAD */
|
||||
#endif /* _IXGBE_H_ */
|
||||
|
||||
Reference in New Issue
Block a user