From e81a315e5dc507786e48964bf0050ea6d5148f9b Mon Sep 17 00:00:00 2001 From: Harry van Haaren Date: Tue, 27 Oct 2015 10:22:14 +0000 Subject: [PATCH] ixgbe: add MAC short packet discard count to Rx errors This patch adds the mspdc (MAC Short Packet Discard Count) to the total rx errors, as discussed on the dev@dpdk mailing list: http://comments.gmane.org/gmane.comp.networking.dpdk.devel/23717 Suggested-by: Igor Ryzhov Signed-off-by: Harry van Haaren Acked-by: Wenzhuo Lu --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 0346c39ce0..0ce74792fb 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -2202,6 +2202,7 @@ ixgbe_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) /* Rx Errors */ stats->ierrors = hw_stats->crcerrs + + hw_stats->mspdc + hw_stats->rlec + hw_stats->ruc + hw_stats->roc + -- 2.20.1