From f75916cf88a3d2f3db7a86bb3309cd6181bad722 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Mon, 4 Mar 2019 12:18:25 +0100 Subject: [PATCH] net/avp: fix RxQ errors stat Transmit errors must not be reported in q_errors[] which is for reception. Fixes: 5a5abe2de94b ("net/avp: add device statistics operations") Cc: stable@dpdk.org Signed-off-by: David Marchand Acked-by: Allain Legacy --- drivers/net/avp/avp_ethdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/avp/avp_ethdev.c b/drivers/net/avp/avp_ethdev.c index bd5eba4a06..57af5158df 100644 --- a/drivers/net/avp/avp_ethdev.c +++ b/drivers/net/avp/avp_ethdev.c @@ -2229,7 +2229,6 @@ avp_dev_stats_get(struct rte_eth_dev *eth_dev, struct rte_eth_stats *stats) stats->q_opackets[i] += txq->packets; stats->q_obytes[i] += txq->bytes; - stats->q_errors[i] += txq->errors; } } -- 2.20.1