]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Removing hung_queue variable to use txqueue function parameter
authorJulio Faracco <jcfaracco@gmail.com>
Wed, 18 Dec 2019 18:38:44 +0000 (15:38 -0300)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 17 Jan 2020 17:55:34 +0000 (09:55 -0800)
commitfe4adf159609a9b30dc28f73d9e93c00a80f578f
treefeb4a37fe90d5db13f5a23fbbee039e4983ee349
parentf99e3b9a7c2f2306b660bb7d202fe3910e22b71a
i40e: Removing hung_queue variable to use txqueue function parameter

The scope of function .ndo_tx_timeout was changed to include the hang
queue when a TX timeout event occurs. See commit f86cf94969d4
("netdev: pass the stuck queue to the timeout handler") for more
details. Now, drivers don't need to identify which queue is stopped.
Drivers can simply use the queue index provided by dev_watchdog and
execute all actions needed to restore network traffic. This commit do
some cleanups into Intel i40e driver to remove a redundant loop to find
stopped queue.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c