]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5e: Add discard counters per priority
authorAharon Landau <aharonl@mellanox.com>
Mon, 16 Dec 2019 10:50:13 +0000 (12:50 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 16 Jan 2020 22:11:33 +0000 (14:11 -0800)
commit827a8cb2dd2b72848652b2a425bba3262808ff44
tree9d501581d96cb53b3f1a865690e850710dac29ed
parenta58837f52d432f32995b1c00e803cc4db18762d3
net/mlx5e: Add discard counters per priority

Add counters that count (per priority) the number of received
packets that dropped due to lack of buffers on a physical port. If
this counter is increasing, it implies that the adapter is
congested and cannot absorb the traffic coming from the network.

Signed-off-by: Aharon Landau <aharonl@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
include/linux/mlx5/mlx5_ifc.h