linux_dsm_epyc7002/drivers/net/ethernet/intel
Parikh, Neerav 2afaa00d2f ixgbe: Fix incorrect disabling of Tx hang check in case of PFC
The XOFF received statistic registers are per priority based and not per
traffic class. The ixgbe driver was incorrectly considering them to be for
each traffic class; and then disabling the "Tx hang" check for the queues
that belonged to the particular traffic class that had received PFC frames.

The above logic worked fine in scenario where the user priority and traffic
class number matched e.g. priority 0 is mapped to traffic class 0 and so on.
But, when multiple user priorities are mapped to a single traffic class or
when user priorities and traffic class numbers do not line up; the ixgbe
driver may disable the "Tx hang" check for queues belonging to a traffic
class that did not receive PFC frames and keep the "Tx hang" check enabled
for the queues that did receive the PFC frames.

This patch corrects the above in the code by considering the statistics
on a per priority basis; then getting the traffic class the user priority
belongs to and disabling the "Tx hang" check for queues that belong
to that traffic class.

Signed-off-by: Neerav Parikh <Neerav.Parikh@intel.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Tested-by: Marcus Dennis <marcusx.e.dennis@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2012-11-28 04:28:56 -08:00
..
e1000 e1000: fix concurrent accesses to PHY from watchdog and ethtool 2012-11-01 03:11:13 -07:00
e1000e e1000e: Minimum packet size must be 17 bytes 2012-10-23 01:02:19 -07:00
igb igb: Use a 32-bit mask when calculating the flow control watermarks 2012-11-28 04:13:39 -08:00
igbvf igbvf: update version number 2012-11-28 04:05:23 -08:00
ixgb netdev: make pci_error_handlers const 2012-09-07 16:35:00 -06:00
ixgbe ixgbe: Fix incorrect disabling of Tx hang check in case of PFC 2012-11-28 04:28:56 -08:00
ixgbevf ixgbevf: Add checksum statistics counters to rings 2012-11-15 06:30:42 -08:00
e100.c netdev: make pci_error_handlers const 2012-09-07 16:35:00 -06:00
Kconfig net: Remove bogus dependencies on INET 2012-11-19 19:13:59 -05:00
Makefile