net/mlx5: fix RxQ errors stat
Transmit errors must not be reported in q_errors[] which is for reception. Fixes: 87011737b715 ("mlx5: add software counters") Fixes: 9f9a48eb2978 ("net/mlx5: fix Tx stats error counter definition") Cc: stable@dpdk.org Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
This commit is contained in:
parent
6a1bc531ac
commit
81d03bff26
@ -413,7 +413,6 @@ mlx5_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
|
||||
tmp.q_opackets[idx] += txq->stats.opackets;
|
||||
tmp.q_obytes[idx] += txq->stats.obytes;
|
||||
#endif
|
||||
tmp.q_errors[idx] += txq->stats.oerrors;
|
||||
}
|
||||
#ifdef MLX5_PMD_SOFT_COUNTERS
|
||||
tmp.opackets += txq->stats.opackets;
|
||||
|
Loading…
x
Reference in New Issue
Block a user