Skip to content

Commit b2875fb

Browse files
Shannon NelsonJeff Kirsher
authored andcommitted
ixgbe: reload IPsec IP table after sa tables
Restore the IPsec hardware IP table after reloading the SA tables. This doesn't make much difference now, but will matter when we add support for VF IPsec offloads. Signed-off-by: Shannon Nelson <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 9e3f2f5 commit b2875fb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -301,14 +301,6 @@ void ixgbe_ipsec_restore(struct ixgbe_adapter *adapter)
301301
ixgbe_ipsec_clear_hw_tables(adapter);
302302
ixgbe_ipsec_start_engine(adapter);
303303

304-
/* reload the IP addrs */
305-
for (i = 0; i < IXGBE_IPSEC_MAX_RX_IP_COUNT; i++) {
306-
struct rx_ip_sa *ipsa = &ipsec->ip_tbl[i];
307-
308-
if (ipsa->used)
309-
ixgbe_ipsec_set_rx_ip(hw, i, ipsa->ipaddr);
310-
}
311-
312304
/* reload the Rx and Tx keys */
313305
for (i = 0; i < IXGBE_IPSEC_MAX_SA_COUNT; i++) {
314306
struct rx_sa *rsa = &ipsec->rx_tbl[i];
@@ -322,6 +314,14 @@ void ixgbe_ipsec_restore(struct ixgbe_adapter *adapter)
322314
if (tsa->used)
323315
ixgbe_ipsec_set_tx_sa(hw, i, tsa->key, tsa->salt);
324316
}
317+
318+
/* reload the IP addrs */
319+
for (i = 0; i < IXGBE_IPSEC_MAX_RX_IP_COUNT; i++) {
320+
struct rx_ip_sa *ipsa = &ipsec->ip_tbl[i];
321+
322+
if (ipsa->used)
323+
ixgbe_ipsec_set_rx_ip(hw, i, ipsa->ipaddr);
324+
}
325325
}
326326

327327
/**

0 commit comments

Comments
 (0)