common/mlx5: share DevX CQ creation
authorMichael Baum <michaelba@nvidia.com>
Wed, 6 Jan 2021 08:19:26 +0000 (08:19 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jan 2021 09:12:36 +0000 (10:12 +0100)
commit9dab4d62b4dc10145e6f998931fea19195c8fdf6
tree171f1327bb4c0808feff70f21d7ab4b297baa08f
parent0e8273176e60d813a8a905e4ce38bbd18a1e2470
common/mlx5: share DevX CQ creation

The CQ object in DevX is created in several places and in several
different drivers.
In all places almost all the details are the same, and in particular the
allocations of the required resources.

Add a structure that contains all the resources, and provide creation
and release functions for it.

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/meson.build
drivers/common/mlx5/mlx5_common_devx.c [new file with mode: 0644]
drivers/common/mlx5/mlx5_common_devx.h [new file with mode: 0644]
drivers/common/mlx5/rte_common_mlx5_exports.def
drivers/common/mlx5/version.map
drivers/common/mlx5/windows/mlx5_win_ext.h