ixgbe: Fix checking TFCS register for TXOFF status when DCB is enabled
authorYi Zou <yi.zou@intel.com>
Fri, 6 Nov 2009 12:56:00 +0000 (12:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Nov 2009 04:33:36 +0000 (20:33 -0800)
commit26f23d82dd8eae6dcc2ab99c04a9256089576a73
treee6e45270aacab63c8127e73fc8a50eb88cc56fea
parentb352e40da8977253f49850a24f6448653a459ac0
ixgbe: Fix checking TFCS register for TXOFF status when DCB is enabled

When DCB is enabled, the ixgbe_check_tx_hang() should check the corresponding
TC's TXOFF in TFCS based on the TC that the tx ring belongs to. Adds a
function to map from the tx_ring hw reg_idx to the correspodning TC and read
TFCS accordingly.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c