]> asedeno.scripts.mit.edu Git - linux.git/commit
ixgbe: Reorder Tx/Rx shutdown to reduce time needed to stop device
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 20 Jul 2018 22:29:29 +0000 (18:29 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 26 Jul 2018 16:04:06 +0000 (09:04 -0700)
commit3b5f14b50ee2079190ae6cfe7477e74676651665
tree8e72ac4e02248f0673ede99891e0798bfb39839c
parent73017f4e051c86985cf4647eceee34de7c13b1b1
ixgbe: Reorder Tx/Rx shutdown to reduce time needed to stop device

This change is meant to help reduce the time needed to shutdown the
transmit and receive paths for the device. Specifically what we now do
after this patch is disable the transmit path first at the netdev level,
and then work on disabling the Rx. This way while we are waiting on the Rx
queues to be disabled the Tx queues have an opportunity to drain out.

In addition I have dropped the 10ms timeout that was left in the ixgbe_down
function that seems to have been carried through from back in e1000 as far
as I can tell. We shouldn't need it since we don't actually disable the Tx
until much later and we have additional logic in place for verifying the Tx
queues have been disabled.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Don Buchholz <donald.buchholz@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c