summaryrefslogtreecommitdiff
path: root/drivers/net/mvneta/mvneta_ethdev.c
diff options
context:
space:
mode:
authorLiron Himi <lironh@marvell.com>2019-07-01 11:00:22 +0300
committerFerruh Yigit <ferruh.yigit@intel.com>2019-07-03 12:57:30 +0200
commit09a6afe7e4bff1d4b2961e031fcae1b7a1f042d3 (patch)
tree75d84a236d9182ae20900080f9734662d138fb64 /drivers/net/mvneta/mvneta_ethdev.c
parentd4c5136227ab12d0d4e2aa11387bf04bd353bd7c (diff)
downloaddpdk-09a6afe7e4bff1d4b2961e031fcae1b7a1f042d3.zip
dpdk-09a6afe7e4bff1d4b2961e031fcae1b7a1f042d3.tar.gz
dpdk-09a6afe7e4bff1d4b2961e031fcae1b7a1f042d3.tar.xz
net/mvneta: fix ierror statistics
Error packets were counted twice due to use of redundant counters. Fixes: e9d5faffd10c ("net/mvneta: support basic stats") Cc: stable@dpdk.org Signed-off-by: Liron Himi <lironh@marvell.com> Reviewed-by: Yuri Chipchev <yuric@marvell.com> Tested-by: Liron Himi <lironh@marvell.com>
Diffstat (limited to 'drivers/net/mvneta/mvneta_ethdev.c')
-rw-r--r--drivers/net/mvneta/mvneta_ethdev.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvneta/mvneta_ethdev.c
index 9657444..d6e64a8 100644
--- a/drivers/net/mvneta/mvneta_ethdev.c
+++ b/drivers/net/mvneta/mvneta_ethdev.c
@@ -707,10 +707,7 @@ mvneta_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
stats->imissed += ppio_stats.rx_discard +
ppio_stats.rx_overrun -
priv->prev_stats.imissed;
-
- stats->ierrors = ppio_stats.rx_packets_err +
- ppio_stats.rx_errors +
- ppio_stats.rx_crc_error -
+ stats->ierrors = ppio_stats.rx_packets_err -
priv->prev_stats.ierrors;
stats->oerrors = ppio_stats.tx_errors - priv->prev_stats.oerrors;