q_errors counts received packets dropped, and is reported as the
rx_qN_errors xstat. The Tx loop fills it with the Tx error count and the
Rx loop never sets it, so rx_qN_errors is purely a Tx counter.

Tx errors are already counted in oerrors, so drop the assignment.

Fixes: effa04693274 ("net/ntnic: add statistics")
Cc: [email protected]

Signed-off-by: Stephen Hemminger <[email protected]>
---
 drivers/net/ntnic/ntnic_ethdev.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/ntnic/ntnic_ethdev.c b/drivers/net/ntnic/ntnic_ethdev.c
index 7cc90a7a5b..bee34d20d7 100644
--- a/drivers/net/ntnic/ntnic_ethdev.c
+++ b/drivers/net/ntnic/ntnic_ethdev.c
@@ -209,7 +209,6 @@ static int dpdk_stats_collect(struct pmd_internals 
*internals, struct rte_eth_st
                if (qstats != NULL && i < RTE_ETHDEV_QUEUE_STAT_CNTRS) {
                        qstats->q_opackets[i] = internals->txq_scg[i].tx_pkts;
                        qstats->q_obytes[i] = internals->txq_scg[i].tx_bytes;
-                       qstats->q_errors[i] = internals->txq_scg[i].err_pkts;
                }
                tx_total += internals->txq_scg[i].tx_pkts;
                tx_total_b += internals->txq_scg[i].tx_bytes;
-- 
2.53.0

Reply via email to