[dpdk-dev] ixgbe: remove mac fault counts from rx errors

Message ID 1446461769-15398-1-git-send-email-harry.van.haaren@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Van Haaren, Harry Nov. 2, 2015, 10:56 a.m. UTC
  This patch removes the mac local fault count and
mac remote fault count from rx errors. The mac
fault count registers count faults, not packets,
and hence should not be added to packet counters.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 2 --
 1 file changed, 2 deletions(-)
  

Comments

Thomas Monjalon Nov. 2, 2015, 11:30 p.m. UTC | #1
2015-11-02 10:56, Harry van Haaren:
> This patch removes the mac local fault count and
> mac remote fault count from rx errors. The mac
> fault count registers count faults, not packets,
> and hence should not be added to packet counters.
> 
> Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>

Applied, thanks
  

Patch

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 4373661..395fa7a 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -2214,8 +2214,6 @@  ixgbe_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
 	                  hw_stats->illerrc +
 	                  hw_stats->errbc +
 	                  hw_stats->xec +
-	                  hw_stats->mlfc +
-	                  hw_stats->mrfc +
 	                  hw_stats->rfc +
 	                  hw_stats->fccrc +
 	                  hw_stats->fclast;