net/mlx5: rearrange creation of RQ and CQ resources
authorMichael Baum <michaelba@nvidia.com>
Thu, 3 Sep 2020 10:13:39 +0000 (10:13 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:08 +0000 (18:55 +0200)
commitf6dee900589f55fc147a5cc4baf1adb52e7dc4da
tree7eeabbb28087be050a7f72589f802e00e7705760
parent1260a87b2889e3c3791500d221c4932e50794092
net/mlx5: rearrange creation of RQ and CQ resources

Rearrangement of RQ and CQ resource handling for DevX Rx queue:
1. Rename the allocation function so that it is understood that it
allocates all resources and not just the CQ or RQ.
2. Move the allocation and release of the doorbell into creation and
release functions.
3. Reduce the number of arguments that the creation functions receive.

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