]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix debug print in ice_tx_timeout
authorBrett Creeley <brett.creeley@intel.com>
Fri, 26 Oct 2018 17:41:00 +0000 (10:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 13 Nov 2018 17:09:25 +0000 (09:09 -0800)
commit73fd4ae36da3b9da50ddee92b43666bdbf44f70e
tree36ce112564a29a70a7fba8e8af7a99e7b2895b01
parent833e9b0b4ad27d2d330e348f467cb772556636c2
ice: Fix debug print in ice_tx_timeout

Currently the debug print in ice_tx_timeout is printing useless and
duplicate values. First, head is being assigned to tx_ring->next_to_clean
and we are printing both of those values, but naming them HWB and NTC
respectively. Also, reading tail always returns 0 so remove that as well.

Instead of assigning the SW head (NTC) read to head, use the actual head
register and change the debug print to note that this is HW_HEAD. Also
reduce the scope of a couple variables.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@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_hw_autogen.h
drivers/net/ethernet/intel/ice/ice_main.c