summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorFeras Daoud2018-11-12 15:40:17 +0100
committerSaeed Mahameed2019-06-13 22:23:18 +0200
commit3e5b72ac2f298423902169db7893fef43365e0a6 (patch)
tree487a9d600ecebf121ea6c79fd915e78386539410 /include/linux/mlx5/driver.h
parentnet/mlx5: Control CR-space access by different PFs (diff)
downloadkernel-qcow2-linux-3e5b72ac2f298423902169db7893fef43365e0a6.tar.gz
kernel-qcow2-linux-3e5b72ac2f298423902169db7893fef43365e0a6.tar.xz
kernel-qcow2-linux-3e5b72ac2f298423902169db7893fef43365e0a6.zip
net/mlx5: Issue SW reset on FW assert
If a FW assert is considered fatal, indicated by a new bit in the health buffer, reset the FW. After the reset go through the normal recovery flow. Only one PF needs to issue the reset, so an attempt is made to prevent the 2nd function from also issuing the reset. It's not an error if that happens, it just slows recovery. Signed-off-by: Feras Daoud <ferasda@mellanox.com> Signed-off-by: Alex Vesker <valex@mellanox.com> Signed-off-by: Moshe Shemesh <moshe@mellanox.com> Signed-off-by: Daniel Jurgens <danielj@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/driver.h')
-rw-r--r--include/linux/mlx5/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index cc7fd8e62844..89205b6cc7ef 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -583,6 +583,7 @@ struct mlx5_priv {
};
enum mlx5_device_state {
+ MLX5_DEVICE_STATE_UNINITIALIZED,
MLX5_DEVICE_STATE_UP,
MLX5_DEVICE_STATE_INTERNAL_ERROR,
};