]> git.droids-corp.org - dpdk.git/commit
common/mlx5: glue device and PD import
authorMichael Baum <michaelba@nvidia.com>
Thu, 24 Feb 2022 23:25:07 +0000 (01:25 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 25 Feb 2022 16:33:31 +0000 (17:33 +0100)
commit0777921a61f31eee9282a633c08272e259314bb8
tree599ff74786f62c77980f19cc5cac98cd87b10113
parentc2e3059a10f2389b791d5d485fe71e666984c193
common/mlx5: glue device and PD import

Add support for rdma-core API to import device.
The API gets ibv_context file descriptor and returns an ibv_context
pointer that is associated with the given file descriptor.
Add also support for rdma-core API to import PD.
The API gets ibv_context and PD handle and returns a protection domain
(PD) that is associated with the given handle in the given context.

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/linux/meson.build
drivers/common/mlx5/linux/mlx5_glue.c
drivers/common/mlx5/linux/mlx5_glue.h