Skip to content

Commit 7fdc1ad

Browse files
Tariq ToukanSaeed Mahameed
authored andcommitted
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>
1 parent 2eb1e42 commit 7fdc1ad

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_rep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ static void mlx5e_rep_update_sw_counters(struct mlx5e_priv *priv)
179179

180180
s->tx_packets += sq_stats->packets;
181181
s->tx_bytes += sq_stats->bytes;
182+
s->tx_queue_dropped += sq_stats->dropped;
182183
}
183184
}
184185
}

0 commit comments

Comments
 (0)