diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2018-11-08 13:06:53 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-01-19 03:15:31 +0300 |
commit | 7fdc1adc52d3975740547a78c2df329bb207f15d (patch) | |
tree | 1b70b4bcc905a600dafabdd94b76035e274f625c /drivers | |
parent | 2eb1e42551a8128d9182480dfaea52fa861e26e8 (diff) | |
download | linux-7fdc1adc52d3975740547a78c2df329bb207f15d.tar.xz |
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>
Diffstat (limited to 'drivers')
-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; } } } |