ixgbe: Refactor queue disable logic to take completion time into account
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 20 Jul 2018 22:29:34 +0000 (18:29 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 26 Jul 2018 16:04:06 +0000 (09:04 -0700)
commit1918e937ca3b4270181e6f05734d5240306bd2cf
tree15ef9c57304c13e9cc078db5d4606c01be0724d1
parent3b5f14b50ee2079190ae6cfe7477e74676651665
ixgbe: Refactor queue disable logic to take completion time into account

This change is meant to allow us to take completion time into account when
disabling queues. Previously we were just working with hard coded values
for how long we should wait. This worked fine for the standard case where
completion timeout was operating in the 50us to 50ms range, however on
platforms that have higher completion timeout times this was resulting in
Rx queues disable messages being displayed as we weren't waiting long
enough for outstanding Rx DMA completions.

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.h
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c