]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
IB/core: Add UVERBS_METHOD_REG_MR on the MR object
authorYishai Hadas <yishaih@nvidia.com>
Thu, 17 Jul 2025 12:17:28 +0000 (15:17 +0300)
committerLeon Romanovsky <leon@kernel.org>
Wed, 23 Jul 2025 05:42:10 +0000 (01:42 -0400)
commit5b2e45049dc06a876bc6b138218ddeb0814502ef
treefaa2c77be06b6803926116365d617dcaf6b27b6f
parentb272fc897297de2e618883d2cd212cac556a9e53
IB/core: Add UVERBS_METHOD_REG_MR on the MR object

This new method enables us to use a single ioctl from user space which
supports the below variants of reg_mr [1].

The method will be extended in the next patches from the series with an
extra attribute to let us pass DMA handle to be used as part of the
registration.

[1] ibv_reg_mr(), ibv_reg_mr_iova(), ibv_reg_mr_iova2(),
ibv_reg_dmabuf_mr().

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Edward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/5a3822ceef084efe967c9752e89c58d8250337c7.1752752567.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/uverbs_std_types_mr.c
include/uapi/rdma/ib_user_ioctl_cmds.h