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 <iryzhov@arccn.ru>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
This commit is contained in:
Harry van Haaren 2015-10-27 10:22:14 +00:00 committed by Thomas Monjalon
parent dc58e8c568
commit e81a315e5d

View File

@ -2202,6 +2202,7 @@ ixgbe_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
/* Rx Errors */ /* Rx Errors */
stats->ierrors = hw_stats->crcerrs + stats->ierrors = hw_stats->crcerrs +
hw_stats->mspdc +
hw_stats->rlec + hw_stats->rlec +
hw_stats->ruc + hw_stats->ruc +
hw_stats->roc + hw_stats->roc +