]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3be6f9a48685185d85403b5c77f215ce88928b5b
tree17e9343e5503e97a4fbdb95bd48a4be7a89c2cc5
parent795b91f5f51083be9ca5b8061a35afe715e86409
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