net/mlx5: Fix mlx5_core_destroy_cq() error flow
authorYishai Hadas <yishaih@mellanox.com>
Sun, 30 Jun 2019 16:23:22 +0000 (19:23 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Wed, 3 Jul 2019 17:54:57 +0000 (20:54 +0300)
commit1d49ce1e05f804d9238eda66d6010eb492668a37
tree37c596d73a991d32c9d124633ab5920052b357f4
parent4a3929b223d0a13fc5920a849a2c303ccc1a1e03
net/mlx5: Fix mlx5_core_destroy_cq() error flow

The firmware command to destroy a CQ might fail when the object is
referenced by other object and the ref count is managed by the firmware.

To enable a second successful destruction post the first failure need to
change  mlx5_eq_del_cq() to be a void function.

As an error in mlx5_eq_del_cq() is quite fatal from the option to
recover, a debug message inside it should be good enougth and it was
changed to be void.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cq.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h