From: Harry van Haaren Date: Tue, 27 Oct 2015 10:22:14 +0000 (+0000) Subject: ixgbe: add MAC short packet discard count to Rx errors X-Git-Tag: spdx-start~8308 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e81a315e5dc507786e48964bf0050ea6d5148f9b;p=dpdk.git 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 --- 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 +