When removing an SA and finding ourselves with zero refcount on an IP table
entry, we zero out the IP table registers, but do not write them. Add the
missing write.

Fixes: 9a0752f498d2 ("net/ixgbe: enable inline IPsec")
Cc: [email protected]
Cc: [email protected]

Signed-off-by: Anatoly Burakov <[email protected]>
---
 drivers/net/intel/ixgbe/ixgbe_ipsec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/intel/ixgbe/ixgbe_ipsec.c 
b/drivers/net/intel/ixgbe/ixgbe_ipsec.c
index 1d001b955b..2d1b3a43ca 100644
--- a/drivers/net/intel/ixgbe/ixgbe_ipsec.c
+++ b/drivers/net/intel/ixgbe/ixgbe_ipsec.c
@@ -312,6 +312,7 @@ ixgbe_crypto_remove_sa(struct ixgbe_crypto_session 
*ic_session)
                        IXGBE_WRITE_REG(hw, IXGBE_IPSRXIPADDR(1), 0);
                        IXGBE_WRITE_REG(hw, IXGBE_IPSRXIPADDR(2), 0);
                        IXGBE_WRITE_REG(hw, IXGBE_IPSRXIPADDR(3), 0);
+                       IXGBE_WAIT_RWRITE;
                }
        } else { /* session->dir == RTE_CRYPTO_OUTBOUND */
                int i;
-- 
2.52.0

Reply via email to