From: Tariq Toukan Date: Thu, 8 Nov 2018 10:06:53 +0000 (+0200) Subject: net/mlx5e: Fix wrong (zero) TX drop counter indication for representor X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7fdc1adc52d3975740547a78c2df329bb207f15d;p=openwrt%2Fstaging%2Fblogic.git net/mlx5e: Fix wrong (zero) TX drop counter indication for representor For representors, the TX dropped counter is not folded from the per-ring counters. Fix it. Signed-off-by: Tariq Toukan Signed-off-by: Saeed Mahameed --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c index 96cc0c6a4014..c9a7081a5329 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -179,6 +179,7 @@ static void mlx5e_rep_update_sw_counters(struct mlx5e_priv *priv) s->tx_packets += sq_stats->packets; s->tx_bytes += sq_stats->bytes; + s->tx_queue_dropped += sq_stats->dropped; } } }