On Wed, Oct 10, 2018 at 07:56:29PM +0300, Yishai Hadas wrote: > Add DV DEVX APIs to reg/dereg user memory: > mlx5dv_devx_umem_reg, mlx5dv_devx_umem_dereg. > > The returned umem_id should be used later on as part of other device > commands that require registered user memory. (e.g. create_qp, etc.). > > Signed-off-by: Yishai Hadas <yishaih@xxxxxxxxxxxx> > debian/ibverbs-providers.symbols | 2 + > providers/mlx5/libmlx5.map | 2 + > providers/mlx5/man/CMakeLists.txt | 2 + > providers/mlx5/man/mlx5dv_devx_umem_reg.3.md | 58 ++++++++++++++++++++++++++++ > providers/mlx5/mlx5.h | 6 +++ > providers/mlx5/mlx5dv.h | 9 +++++ > providers/mlx5/verbs.c | 57 +++++++++++++++++++++++++++ > 7 files changed, 136 insertions(+) > create mode 100644 providers/mlx5/man/mlx5dv_devx_umem_reg.3.md > > diff --git a/debian/ibverbs-providers.symbols b/debian/ibverbs-providers.symbols > index acd1715..9bab750 100644 > +++ b/debian/ibverbs-providers.symbols > @@ -33,3 +33,5 @@ libmlx5.so.1 ibverbs-providers #MINVER# > mlx5dv_devx_obj_destroy@MLX5_1.7 21 > mlx5dv_devx_obj_query@MLX5_1.7 21 > mlx5dv_devx_obj_modify@MLX5_1.7 21 > + mlx5dv_devx_umem_dereg@MLX5_1.7 21 > + mlx5dv_devx_umem_reg@MLX5_1.7 21 > diff --git a/providers/mlx5/libmlx5.map b/providers/mlx5/libmlx5.map > index 91a7a32..d0499cd 100644 > +++ b/providers/mlx5/libmlx5.map > @@ -51,4 +51,6 @@ MLX5_1.7 { > mlx5dv_devx_obj_destroy; > mlx5dv_devx_obj_query; > mlx5dv_devx_obj_modify; > + mlx5dv_devx_umem_dereg; > + mlx5dv_devx_umem_reg; > } MLX5_1.6; > diff --git a/providers/mlx5/man/CMakeLists.txt b/providers/mlx5/man/CMakeLists.txt > index 8d5d8e2..72a50e0 100644 > +++ b/providers/mlx5/man/CMakeLists.txt > @@ -5,6 +5,7 @@ rdma_man_pages( > mlx5dv_create_flow_matcher.3.md > mlx5dv_create_qp.3.md > mlx5dv_devx_obj_create.3.md > + mlx5dv_devx_umem_reg.3.md > mlx5dv_flow_action_esp.3.md > mlx5dv_get_clock_info.3 > mlx5dv_init_obj.3 > @@ -18,4 +19,5 @@ rdma_alias_man_pages( > mlx5dv_devx_obj_create.3 mlx5dv_devx_obj_destroy.3 > mlx5dv_devx_obj_create.3 mlx5dv_devx_obj_query.3 > mlx5dv_devx_obj_create.3 mlx5dv_devx_obj_modify.3 > + mlx5dv_devx_umem_reg.3 mlx5dv_devx_umem_dereg.3 > ) > diff --git a/providers/mlx5/man/mlx5dv_devx_umem_reg.3.md b/providers/mlx5/man/mlx5dv_devx_umem_reg.3.md > new file mode 100644 > index 0000000..c829d54 > +++ b/providers/mlx5/man/mlx5dv_devx_umem_reg.3.md > @@ -0,0 +1,58 @@ > + > +--- > +layout: page I don't think this blank line is allowed in the markdown format? Jason