]> 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)
commit656f181f182d18252eaf50d3d18a12f94c9624a8
treefeb4a37fe90d5db13f5a23fbbee039e4983ee349
parenta29e5fc535f10dd5856f94604bb32cd0aba2aba5
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 559f15bcb195
("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