Skip to contentSkip to conversation

net/ixgbe: fix Rx errors statistics for UDP checksum

PATCH Applied Haiyue Wang 2 participants 2 messages Apr 8, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ixgbe: fix Rx errors statistics for UDP checksum

Restrict the "remove l3_l4_xsum_errors from rx_errors" to 82599 only for hardware errata.

Fixes 256ff05a9cae ("ixgbe: fix Rx errors statistics for UDP checksum")
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/net/ixgbe/ixgbe_ethdev.c +7 -0
index 4ee709b17..ff65145f5 100644
@@ -3344,6 +3344,13 @@ ixgbe_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
 			  hw_stats->fccrc +
 			  hw_stats->fclast;
 
+	/*
+	 * 82599 errata, UDP frames with a 0 checksum can be marked as checksum
+	 * errors.
+	 */
+	if (hw->mac.type != ixgbe_mac_82599EB)
+		stats->ierrors += hw_stats->xec;
+
 	/* Tx Errors */
 	stats->oerrors  = 0;
 	return 0;
Signature · 1 line
2.31.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 12 lines

-----Original Message-----
From: Wang, Haiyue <[email protected]>
Sent: Thursday, April 8, 2021 2:30 PM
To: [email protected]
Cc: [email protected]; [email protected]; Zhang, Qi Z <[email protected]>; Wang, Haiyue <[email protected]>; [email protected]; Guo, Jia <[email protected]>; Van Haaren, Harry <[email protected]>
Subject: [PATCH v1] net/ixgbe: fix Rx errors statistics for UDP checksum

Quoted 7 lines

Restrict the "remove l3_l4_xsum_errors from rx_errors" to 82599 only for hardware errata.

Fixes 256ff05a9cae ("ixgbe: fix Rx errors statistics for UDP checksum")

Applied to dpdk-next-net-intel.

Thanks
Qi