Home Home > GIT Browse > openSUSE-42.3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2018-01-10 12:18:31 +0100
committerThomas Bogendoerfer <tbogendoerfer@suse.de>2018-01-10 12:18:40 +0100
commit990737d292876ac3c273a3517deb10a683875658 (patch)
tree2ae70672084597c64220a19924ae71b14200b269
parentf501c216fb89546a4e8d27f2d941ba696e68081c (diff)
net/mlx5: Stay in polling mode when command EQ destroy fails
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/eq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eq.c b/drivers/net/ethernet/mellanox/mlx5/core/eq.c
index 5901d431aa2b..2f204cf5c14a 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/eq.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eq.c
@@ -778,11 +778,9 @@ void mlx5_stop_eqs(struct mlx5_core_dev *dev)
mlx5_cmd_use_polling(dev);
err = mlx5_destroy_unmap_eq(dev, &table->cmd_eq);
- if (err) {
+ if (err)
mlx5_core_err(dev, "failed to destroy command eq, err(%d)\n",
err);
- mlx5_cmd_use_events(dev);
- }
}
int mlx5_core_eq_query(struct mlx5_core_dev *dev, struct mlx5_eq *eq,