aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAharon Landau <aharonl@mellanox.com>2019-12-16 12:50:13 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2020-01-16 14:11:33 -0800
commit827a8cb2dd2b72848652b2a425bba3262808ff44 (patch)
tree9d501581d96cb53b3f1a865690e850710dac29ed /include
parentnet/mlx5e: Expose FEC feilds and related capability bit (diff)
downloadlinux-dev-827a8cb2dd2b72848652b2a425bba3262808ff44.tar.xz
linux-dev-827a8cb2dd2b72848652b2a425bba3262808ff44.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/mlx5_ifc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 2ab4562b4851..ee0a34d66c7c 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -2180,7 +2180,9 @@ struct mlx5_ifc_eth_per_prio_grp_data_layout_bits {
u8 rx_pause_transition_low[0x20];
- u8 reserved_at_3c0[0x40];
+ u8 rx_discards_high[0x20];
+
+ u8 rx_discards_low[0x20];
u8 device_stall_minor_watermark_cnt_high[0x20];