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>
This commit is contained in:
committed by
David S. Miller
parent
f6a69885f2
commit
3c641ba4a8
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user