ixgbe: Avoid loopback and fix boolean logic in ipsec_stop_data
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 5 Jun 2018 15:11:08 +0000 (11:11 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 11 Jun 2018 15:48:13 +0000 (08:48 -0700)
commite9f655ee97f14b4f5eba7b6b5a56a7c298573e67
tree17e9343e5503e97a4fbdb95bd48a4be7a89c2cc5
parentde7a7e34e27c029fbb3c4e764db045548629b834
ixgbe: Avoid loopback and fix boolean logic in ipsec_stop_data

This patch fixes two issues. First we add an early test for the Tx and Rx
security block ready bits. By doing this we can avoid the need for waits or
loopback in the event that the security block is already flushed out.
Secondly we fix the boolean logic that was testing for the Tx OR Rx ready
bits being set and change it so that we only exit if the Tx AND Rx ready
bits are both set.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-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>
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c