diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2018-11-08 12:06:53 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-01-18 16:15:31 -0800 |
commit | 7fdc1adc52d3975740547a78c2df329bb207f15d (patch) | |
tree | 1b70b4bcc905a600dafabdd94b76035e274f625c | |
parent | 2eb1e42551a8128d9182480dfaea52fa861e26e8 (diff) | |
download | linux-7fdc1adc52d3975740547a78c2df329bb207f15d.tar.bz2 |
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 <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } } |