summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_stats.c
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@redhat.com>2019-03-04 12:18:30 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2019-06-06 20:21:20 +0900
commit81d03bff2647c708a8f036a8f2298de6b041e0c9 (patch)
treeb8891dfd30c075b6a0cf67f3759bf014bbd8d320 /drivers/net/mlx5/mlx5_stats.c
parent6a1bc531ac6b8fcd101ea42d4a419f92655f7087 (diff)
downloaddpdk-81d03bff2647c708a8f036a8f2298de6b041e0c9.zip
dpdk-81d03bff2647c708a8f036a8f2298de6b041e0c9.tar.gz
dpdk-81d03bff2647c708a8f036a8f2298de6b041e0c9.tar.xz
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>
Diffstat (limited to 'drivers/net/mlx5/mlx5_stats.c')
-rw-r--r--drivers/net/mlx5/mlx5_stats.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c
index ed50667..cff065f 100644
--- a/drivers/net/mlx5/mlx5_stats.c
+++ b/drivers/net/mlx5/mlx5_stats.c
@@ -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;