]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit775f8bd08d04f17b2ea7480f7539368cc7fce985
tree10bb9c0ee07569fab349bd0d0ec238367f0a3d45
parent100877290f701d44c94f30e03e7f6516f6bf3cda
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