]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Removing hung_queue variable to use txqueue function parameter
authorJulio Faracco <jcfaracco@gmail.com>
Wed, 18 Dec 2019 18:38:45 +0000 (15:38 -0300)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 17 Jan 2020 17:55:34 +0000 (09:55 -0800)
commitc80a1b2994620f30f6f376cea3f02394a772ca77
treed0f4c81edc0e9274662d04b9248dd86587e03637
parentfe4adf159609a9b30dc28f73d9e93c00a80f578f
ice: 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 ice 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/ice/ice_main.c