net/mlx4_core: Use devlink region_snapshot parameter
authorAlex Vesker <valex@mellanox.com>
Thu, 12 Jul 2018 12:13:18 +0000 (15:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jul 2018 00:37:13 +0000 (17:37 -0700)
commit3c641ba4a852cf4e90e3d7f29c5df08e24213c5d
treea7261b42a7763bc92d15d0505281805d62c33376
parentf6a69885f2e38be0229ab9f6a2d9d4a1b4ba2be5
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>
drivers/net/ethernet/mellanox/mlx4/crdump.c
drivers/net/ethernet/mellanox/mlx4/main.c
include/linux/mlx4/device.h