ixgbe: dcb: IEEE PFC stats and reset logic incorrect
authorJohn Fastabend <john.r.fastabend@intel.com>
Mon, 23 Apr 2012 22:27:28 +0000 (22:27 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 5 May 2012 12:18:59 +0000 (05:18 -0700)
commite1abc1bb85549ed5a01a7f49a488002dbe52486c
tree10bb9c0ee07569fab349bd0d0ec238367f0a3d45
parenta61d3d14227eaa70d45a8c13d15cb9f1abe01f73
ixgbe: dcb: IEEE PFC stats and reset logic incorrect

PFC stats are only tabulated when PFC is enabled. However in IEEE
mode the ieee_pfc pfc_tc bits were not checked and the calculation
was aborted.

This results in statistics not being reported through ethtool and
possible a false Tx hang occurring when receiving pause frames.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c