common/mlx5: share DevX queue pair operations
authorRaja Zidane <rzidane@nvidia.com>
Tue, 5 Oct 2021 12:27:29 +0000 (12:27 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 5 Oct 2021 16:15:40 +0000 (18:15 +0200)
commitf9213ab12cf9d2481bdb505b7130b388a3634305
tree41345c226c9f04d81b2906bdefcf3725e2749919
parentcb3dd14c77f4a44c204b7ac10898ecc33afeb9a0
common/mlx5: share DevX queue pair operations

Currently drivers using QP (vDPA, crypto and compress, regex soon)
manage their memory, creation, modification and destruction of the QP,
in almost identical code.
Move QP memory management, creation and destruction to common.
Add common function to change QP state to RTS.
Add user_index attribute to QP creation.
It's for better code maintenance and reuse.

Signed-off-by: Raja Zidane <rzidane@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/mlx5_devx_cmds.c
drivers/common/mlx5/mlx5_devx_cmds.h
drivers/common/mlx5/version.map
drivers/crypto/mlx5/mlx5_crypto.c
drivers/crypto/mlx5/mlx5_crypto.h
drivers/vdpa/mlx5/mlx5_vdpa.h
drivers/vdpa/mlx5/mlx5_vdpa_event.c