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>
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;