Skip to content

Commit 9e3f2f5

Browse files
Shannon NelsonJeff Kirsher
authored andcommitted
ixgbe: don't clear IPsec sa counters on HW clearing
The software SA record counters should not be cleared when clearing the hardware tables. This causes the counters to be out of sync after a driver reset. Fixes: 63a67fe ("ixgbe: add ipsec offload add and remove SA") Signed-off-by: Shannon Nelson <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 7fb94bd commit 9e3f2f5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ static void ixgbe_ipsec_set_rx_ip(struct ixgbe_hw *hw, u16 idx, __be32 addr[])
113113
**/
114114
static void ixgbe_ipsec_clear_hw_tables(struct ixgbe_adapter *adapter)
115115
{
116-
struct ixgbe_ipsec *ipsec = adapter->ipsec;
117116
struct ixgbe_hw *hw = &adapter->hw;
118117
u32 buf[4] = {0, 0, 0, 0};
119118
u16 idx;
@@ -132,9 +131,6 @@ static void ixgbe_ipsec_clear_hw_tables(struct ixgbe_adapter *adapter)
132131
ixgbe_ipsec_set_tx_sa(hw, idx, buf, 0);
133132
ixgbe_ipsec_set_rx_sa(hw, idx, 0, buf, 0, 0, 0);
134133
}
135-
136-
ipsec->num_rx_sa = 0;
137-
ipsec->num_tx_sa = 0;
138134
}
139135

140136
/**

0 commit comments

Comments
 (0)