net/mlx5: mitigate Rx queue reference counters
authorMichael Baum <michaelba@nvidia.com>
Thu, 3 Sep 2020 10:13:35 +0000 (10:13 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:08 +0000 (18:55 +0200)
commit24e4b650badc13d6b1827d35a0022f56ce513314
tree49de7335622caca6eabac376a66625ba2a7a3d61
parentc902e264f67e92437ffdb30ef3c3f3aa6ed7a3d5
net/mlx5: mitigate Rx queue reference counters

The Rx queue structures manage 2 different reference counter per queue:
rxq_ctrl reference counter and rxq_obj reference counter.

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

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