Skip to content

Commit

Permalink
net/ixgbe: fix Rx errors statistics for UDP checksum
Browse files Browse the repository at this point in the history
[ upstream commit 2ee14c8 ]

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

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

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
haiyuewa authored and cpaelzer committed May 17, 2021
1 parent 3ed1b33 commit bb8e723
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/net/ixgbe/ixgbe_ethdev.c
Expand Up @@ -3382,6 +3382,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;
Expand Down

0 comments on commit bb8e723

Please sign in to comment.