OSDN Git Service

ixgbe: don't clear IPsec sa counters on HW clearing
authorShannon Nelson <shannon.nelson@oracle.com>
Fri, 10 Aug 2018 19:24:10 +0000 (12:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:49:54 +0000 (14:49 +0100)
commitcdb273fd8cd4ff99b4c2e0411fe6c705c7cbed62
tree95cc6ffb244da698277679b5bad96e0e6dd2e697
parent45f2aa92042a53547a7e391014ef8e3d451374bc
ixgbe: don't clear IPsec sa counters on HW clearing

[ Upstream commit 9e3f2f5ecee69b0f70003fb3e07639151e91de73 ]

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: 63a67fe229ea ("ixgbe: add ipsec offload add and remove SA")
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c