summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2015-07-15 14:11:31 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-17 02:26:38 +0200
commitf6bf669b990004dc69231476d9fcf0b80574e568 (patch)
treec08e83989c240ab0837f7718de0ec7a61b04befa
parent5e50ad1c1b6347ba03a305c62314a4f25be96b78 (diff)
downloaddpdk-f6bf669b990004dc69231476d9fcf0b80574e568.zip
dpdk-f6bf669b990004dc69231476d9fcf0b80574e568.tar.gz
dpdk-f6bf669b990004dc69231476d9fcf0b80574e568.tar.xz
ixgbe: account more Rx errors
ierrors only included a base set of error statistics, this patch adds additional error registers to ierrors. Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
-rw-r--r--drivers/net/ixgbe/ixgbe_ethdev.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 356823f..19bcffe 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -2045,7 +2045,16 @@ ixgbe_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
hw_stats->ruc +
hw_stats->roc +
total_missed_rx +
- hw_stats->illerrc + hw_stats->errbc;
+ hw_stats->illerrc +
+ hw_stats->errbc +
+ hw_stats->xec +
+ hw_stats->mlfc +
+ hw_stats->mrfc +
+ hw_stats->rfc +
+ hw_stats->rjc +
+ hw_stats->fccrc +
+ hw_stats->fclast +
+ (rxnfgpc - hw_stats->gprc); /* PHY Errors*/
/* Tx Errors */
/*txdgpc: packets that are DMA'ed*/