summaryrefslogtreecommitdiff
path: root/include/linux/mlx4
diff options
context:
space:
mode:
authorAlex Vesker <valex@mellanox.com>2018-07-12 15:13:18 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-12 17:37:13 -0700
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 {
};
struct mlx4_fw_crdump {
+ bool snapshot_enable;
struct devlink_region *region_crspace;
struct devlink_region *region_fw_health;
};