From: David Marchand Date: Mon, 4 Mar 2019 11:18:30 +0000 (+0100) Subject: net/mlx5: fix RxQ errors stat X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=81d03bff2647c708a8f036a8f2298de6b041e0c9;p=dpdk.git 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 Acked-by: Shahaf Shuler --- diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c index ed50667f45..cff065f279 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;