]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Expose PFC stall prevention counters
authorInbar Karmy <inbark@mellanox.com>
Thu, 17 Aug 2017 13:39:47 +0000 (16:39 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 26 Mar 2018 20:42:19 +0000 (13:42 -0700)
commit7256ad6a33eae1db3253a48c1986002a9f088073
treeb5a9535c2a3e90e28f2faf76ce7dda9dcd982895
parent86828dbbf687f07125f75144e52da39694f3b9ea
net/mlx5e: Expose PFC stall prevention counters

Add the needed capability bit and counters to device spec description.
Expose the following two counters in ethtool:

tx_pause_storm_warning_events: when the device is stalled for a period
longer than a pre-configured watermark, the counter increase, allowing
the debug utility an insight into current device status.

tx_pause_storm_error_events: when the device is stalled for a period
longer than a pre-configured timeout, the pause transmission is disabled,
and the counter increase.

Signed-off-by: Inbar Karmy <inbark@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/fw.c
include/linux/mlx5/device.h
include/linux/mlx5/mlx5_ifc.h