net/mlx5: mitigate Tx queue reference counters
authorMichael Baum <michaelba@nvidia.com>
Thu, 1 Oct 2020 14:09:14 +0000 (14:09 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 9 Oct 2020 11:17:42 +0000 (13:17 +0200)
commit17a57183c0eb207d8ca9c0b1f624f27aa1a4d09b
treec6cbb0487e3534990f24b0b0b5185649bb32a8ec
parentfa2dd3d4d6e24bf2956828bf05de86e6e6d88c3e
net/mlx5: mitigate Tx queue reference counters

The Tx queue structures manage 2 different reference counter per queue:
txq_ctrl reference counter and txq_obj reference counter.

There is no real need to use two different counters, it just complicates
the release functions.
Remove the txq_obj counter and use only the txq_ctrl counter.

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_rxtx.h
drivers/net/mlx5/mlx5_txq.c