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)
commit2fcb12df7d2fa5a004fc3e7f589e58a08f7ed8c9
treeb5a9535c2a3e90e28f2faf76ce7dda9dcd982895
parent336f2c038da1b7f3faf098f2f61bca51e19089ad
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