From fffe9d0431e832585de738069e8b9b95f3a062ee Mon Sep 17 00:00:00 2001 From: David Marchand Date: Mon, 4 Mar 2019 12:18:34 +0100 Subject: [PATCH] net/szedata2: fix RxQ errors stat Transmit errors must not be reported in q_errors[] which is for reception. Fixes: abef3dd62e7a ("szedata2: add new poll mode driver") Cc: stable@dpdk.org Signed-off-by: David Marchand Reviewed-by: Ferruh Yigit --- drivers/net/szedata2/rte_eth_szedata2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/szedata2/rte_eth_szedata2.c b/drivers/net/szedata2/rte_eth_szedata2.c index 99de9f4e6f..c1ea6fc65f 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.c +++ b/drivers/net/szedata2/rte_eth_szedata2.c @@ -1093,7 +1093,6 @@ eth_stats_get(struct rte_eth_dev *dev, if (i < RTE_ETHDEV_QUEUE_STAT_CNTRS) { stats->q_opackets[i] = txq->tx_pkts; stats->q_obytes[i] = txq->tx_bytes; - stats->q_errors[i] = txq->err_pkts; } tx_total += txq->tx_pkts; tx_total_bytes += txq->tx_bytes; -- 2.20.1