common/mlx5: glue MR registration with IOVA
authorMichael Baum <michaelba@nvidia.com>
Tue, 9 Nov 2021 12:36:08 +0000 (14:36 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 Nov 2021 14:48:53 +0000 (15:48 +0100)
commit6ebd062e0602f0571cf9abbe9eabd0e5f6ad0a39
tree6ca0fe9efa6941b93cf9dfd9bcfb80ceda287bab
parent2ff801515e4942c3e0f8f4af954598da5c90c457
common/mlx5: glue MR registration with IOVA

Add support for rdma-core API to register IOVA MR.
The API gets the process VA, size, and IOVA and returns a memory region
with space pointed by a specific IOVA.

So any access in this MR should come with an address that is relative to
the IOVA specified in the API.

Fixes: cc07a42da250 ("vdpa/mlx5: prepare memory regions")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Signed-off-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