aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4
diff options
context:
space:
mode:
authorAlex Vesker <valex@mellanox.com>2018-07-12 08:13:18 -0400
committerDavid S. Miller <davem@davemloft.net>2018-07-12 20:37:13 -0400
commit3c641ba4a852cf4e90e3d7f29c5df08e24213c5d (patch)
treea7261b42a7763bc92d15d0505281805d62c33376 /include/linux/mlx4
parentf6a69885f2e38be0229ab9f6a2d9d4a1b4ba2be5 (diff)
net/mlx4_core: Use devlink region_snapshot parameter
This parameter enables capturing region snapshot of the crspace during critical errors. The default value of this parameter is disabled, it can be enabled using devlink param commands. It is possible to configure during runtime and also driver init. Signed-off-by: Alex Vesker <valex@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Moshe Shemesh <moshe@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r--include/linux/mlx4/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index 300b944e6e1e..dca6ab4eaa99 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -853,6 +853,7 @@ struct mlx4_vf_dev {
853}; 853};
854 854
855struct mlx4_fw_crdump { 855struct mlx4_fw_crdump {
856 bool snapshot_enable;
856 struct devlink_region *region_crspace; 857 struct devlink_region *region_crspace;
857 struct devlink_region *region_fw_health; 858 struct devlink_region *region_fw_health;
858}; 859};