common/mlx5: share DevX SQ creation
authorMichael Baum <michaelba@nvidia.com>
Wed, 6 Jan 2021 08:19:34 +0000 (08:19 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jan 2021 09:12:36 +0000 (10:12 +0100)
commit38f537635c15f10523c9e7fa93717c4248f9eaae
tree3bc2348a077ed53b265dbf0bc52fb0fde51bfd27
parentf002358cef2d4737fc9f48432cae9ac93acf31dd
common/mlx5: share DevX SQ creation

The SQ 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/mlx5_common_devx.c
drivers/common/mlx5/mlx5_common_devx.h
drivers/common/mlx5/rte_common_mlx5_exports.def
drivers/common/mlx5/version.map