]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
eth: mlx5: Move pause storm errors to pause stats
authorMohsin Bashir <mohsin.bashr@gmail.com>
Mon, 2 Mar 2026 23:01:49 +0000 (15:01 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 5 Mar 2026 15:26:53 +0000 (16:26 +0100)
commitcc663d3fed062fb41b59df953a2cb9df5f56f943
tree8ca28ba27b69fbcdd1d9468f5d1a1b4d605c2bad
parent8d282b680c729203d04d4eee396f3216f29b35aa
eth: mlx5: Move pause storm errors to pause stats

Report device_stall_critical_watermark_cnt as tx_pause_storm_events in
the ethtool_pause_stats struct. This counter tracks pause storm error
events which indicate the NIC has been sending pause frames for an
extended period due to a stall.

The ethtool_pause_stats struct reports these stalls as a single value,
whereas the device supports tracking them per priority. Aggregate the
counter across all priority classes to capture stalls on all priorities.
Note that the stats are fetched from the device for each priority via
mlx5_core_access_reg().

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
Link: https://patch.msgid.link/20260302230149.1580195-6-mohsin.bashr@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c