]> asedeno.scripts.mit.edu Git - linux.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)
commited5a3f664c557e2ee5d92f75398a0fc8ab522ad5
treed0f4c81edc0e9274662d04b9248dd86587e03637
parent65279beec34565a3d9d4d098ea7f602ffc419695
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 0290bd291cc0
("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