fm10k: use txqueue parameter in fm10k_tx_timeout
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 19 Dec 2019 20:10:00 +0000 (12:10 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 17 Jan 2020 17:55:34 +0000 (09:55 -0800)
commit2da259c5fe1f528dd9bd4d0430a2732de18c190b
treeae97ea48a313cf5e10ced190c85d106b09d29841
parentbcb3244ccdc4cebb6ed3d47d973da7b1a03837c0
fm10k: use txqueue parameter in fm10k_tx_timeout

Make use of the new txqueue parameter to the .ndo_tx_timeout function.
In fm10k_tx_timeout, remove the now unnecessary loop to determine which
Tx queue is stuck. Instead, just double check the specified queue

This could be improved further to attempt resetting only the specific
queue that got stuck. However, that is a much larger refactor and has
been left as a future improvement.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c