]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Use the software based tail when checking for hung Tx ring
authorBrett Creeley <brett.creeley@intel.com>
Thu, 25 Jul 2019 08:55:28 +0000 (01:55 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 20 Aug 2019 19:28:35 +0000 (12:28 -0700)
commit1ddc6b57ba4abd3a0cc45b66488590bc001cdf76
treeb654d894fbc7eb7318f3f996efa361ef8af39bd9
parentc6635ca2099ea9625b85b85b453dbc853687769d
ice: Use the software based tail when checking for hung Tx ring

Currently in ice_get_tx_pending we try to read a Tx ring's tail. This is
then compared with the software based head (next_to_clean) to determine
if we have pending work. This will never work because reading of the Tx
ring's tail is no longer supported. Fix this by using the software based
tail (next_to_use) to determine if there is pending work.

Signed-off-by: Brett Creeley <brett.creeley@intel.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