]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaafbf27a55c860a1fa16a940184b10cd065c8c51
tree15ef9c57304c13e9cc078db5d4606c01be0724d1
parentf700b900f903acaeb9e82b86882a9b015209847d
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