From: David Marchand Date: Mon, 4 Mar 2019 11:18:25 +0000 (+0100) Subject: net/avp: fix RxQ errors stat X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f75916cf88a3d2f3db7a86bb3309cd6181bad722;p=dpdk.git 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 --- 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; } }