aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorMohamad Haj Yahia <mohamad@mellanox.com>2017-03-30 10:09:00 -0400
committerSaeed Mahameed <saeedm@mellanox.com>2017-06-27 07:49:57 -0400
commit2a0165a034ac024b60cca49c61e46f4afa2e4d98 (patch)
tree7052e57aff8856cb4e9576f7f85b56c827bbc702 /include/linux/mlx5/driver.h
parent8ce59b16b4b6eacedaec1f7b652b4781cdbfe15f (diff)
net/mlx5: Cancel delayed recovery work when unloading the driver
Draining the health workqueue will ignore future health works including the one that report hardware failure and thus we can't enter error state Instead cancel the recovery flow and make sure only recovery flow won't be scheduled. Fixes: 5e44fca50470 ('net/mlx5: Only cancel recovery work when cleaning up device') Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com> Signed-off-by: Moshe Shemesh <moshe@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 93273d9ea4d1..ba260330ce5e 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -925,6 +925,7 @@ int mlx5_health_init(struct mlx5_core_dev *dev);
925void mlx5_start_health_poll(struct mlx5_core_dev *dev); 925void mlx5_start_health_poll(struct mlx5_core_dev *dev);
926void mlx5_stop_health_poll(struct mlx5_core_dev *dev); 926void mlx5_stop_health_poll(struct mlx5_core_dev *dev);
927void mlx5_drain_health_wq(struct mlx5_core_dev *dev); 927void mlx5_drain_health_wq(struct mlx5_core_dev *dev);
928void mlx5_drain_health_recovery(struct mlx5_core_dev *dev);
928int mlx5_buf_alloc_node(struct mlx5_core_dev *dev, int size, 929int mlx5_buf_alloc_node(struct mlx5_core_dev *dev, int size,
929 struct mlx5_buf *buf, int node); 930 struct mlx5_buf *buf, int node);
930int mlx5_buf_alloc(struct mlx5_core_dev *dev, int size, struct mlx5_buf *buf); 931int mlx5_buf_alloc(struct mlx5_core_dev *dev, int size, struct mlx5_buf *buf);