net/mlx5: Stay in polling mode when command EQ destroy fails
authorMoshe Shemesh <moshe@mellanox.com>
Mon, 4 Dec 2017 13:23:51 +0000 (15:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2018 09:24:28 +0000 (10:24 +0100)
commit43da2bcade2a05e0aef0ab26a879f9c9c246aa7d
treee34e8dcbcf14265fb60941e36c4bde19cffbdba1
parenta2cfb1c664c31dc692736800c71b2a78ca0af1f7
net/mlx5: Stay in polling mode when command EQ destroy fails

[ Upstream commit a2fba188fd5eadd6061bef4f2f2577a43231ebf3 ]

During unload, on mlx5_stop_eqs we move command interface from events
mode to polling mode, but if command interface EQ destroy fail we move
back to events mode.
That's wrong since even if we fail to destroy command interface EQ, we
do release its irq, so no interrupts will be received.

Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/eq.c