aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/fw.c
diff options
context:
space:
mode:
authorInbar Karmy <inbark@mellanox.com>2017-08-17 16:39:47 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2018-03-26 13:42:19 -0700
commit2fcb12df7d2fa5a004fc3e7f589e58a08f7ed8c9 (patch)
treeb5a9535c2a3e90e28f2faf76ce7dda9dcd982895 /drivers/net/ethernet/mellanox/mlx5/core/fw.c
parentMerge branch 'mlxsw-Offload-IPv6-multicast-routes' (diff)
downloadlinux-dev-2fcb12df7d2fa5a004fc3e7f589e58a08f7ed8c9.tar.xz
linux-dev-2fcb12df7d2fa5a004fc3e7f589e58a08f7ed8c9.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/fw.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/fw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fw.c b/drivers/net/ethernet/mellanox/mlx5/core/fw.c
index 9d11e92fb541..d7bb10ab2173 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/fw.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/fw.c
@@ -183,6 +183,9 @@ int mlx5_query_hca_caps(struct mlx5_core_dev *dev)
return err;
}
+ if (MLX5_CAP_GEN(dev, debug))
+ mlx5_core_get_caps(dev, MLX5_CAP_DEBUG);
+
if (MLX5_CAP_GEN(dev, pcam_reg))
mlx5_get_pcam_reg(dev);