net/mlx5: fix Rx queue release assertions
authorMatan Azrad <matan@mellanox.com>
Wed, 20 Nov 2019 09:21:16 +0000 (09:21 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:06 +0000 (17:36 +0100)
commite7f4fbb30153702438e7b776eb05966caefc2c77
tree2a2ac3a00348640677cbf76e26fd24af6fcaf1dc
parent66f64dd6dc867f7f32b01090c431473926afac0d
net/mlx5: fix Rx queue release assertions

In debug mode, there is assertion to validate the CQ object before the
release.

Wrongly, the assertion is done for any type of RX queue even if it
doesn't use CQ at all, for example in hairpin Rx queue.

Ignore CQ assertion when hairpin queue is released.

Fixes: e79c9be91515 ("net/mlx5: support Rx hairpin queues")

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
drivers/net/mlx5/mlx5_rxq.c