ixgbe: add MAC short packet discard count to Rx errors
authorHarry van Haaren <harry.van.haaren@intel.com>
Tue, 27 Oct 2015 10:22:14 +0000 (10:22 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 28 Oct 2015 14:50:04 +0000 (15:50 +0100)
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 <iryzhov@arccn.ru>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c

index 0346c39..0ce7479 100644 (file)
@@ -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 +