net/mlx5: fix send queue doorbell
authorMichael Baum <michaelba@nvidia.com>
Thu, 1 Oct 2020 14:09:12 +0000 (14:09 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 9 Oct 2020 11:17:42 +0000 (13:17 +0200)
commit95b0e40b10d9e88f568b082140bf032cffeec9d9
tree71d5a222234a3f0bf51b55397c708615596d7f9a
parent9f6dc8592d54aa2ec1800c53977a31bd7922147b
net/mlx5: fix send queue doorbell

As part of SQ creation for Tx queue objects, a HW doorbell memory should
be allocated and mapped to the HW.

The SQ doorbell handler was wrongly saved on the CQ fields what caused
wrong doorbell release in the Tx queue object destroy flow.

Save the SQ doorbell handler in the SQ fields.

Fixes: 3a87b964edd3 ("net/mlx5: create Tx queues with DevX")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_txq.c