]> git.baikalelectronics.ru Git - kernel.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)
commit6dce91a8b61865b044b81efbedaa107939c5dab7
tree9d501581d96cb53b3f1a865690e850710dac29ed
parente565becdac0a3da94b95270ff97868fb7353d33f
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