]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
IB/uverbs: Add device memory registration ioctl support
authorAriel Levkovich <lariel@mellanox.com>
Thu, 5 Apr 2018 15:53:25 +0000 (18:53 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 5 Apr 2018 17:16:39 +0000 (11:16 -0600)
commitbe934cca9e987e73eb20e3c80731a9580d5acc79
tree5f86dc099337c73984135db42a3ec003416b5ca8
parentbee76d7ab5d270919e80e4764df7cd7e4f06ed24
IB/uverbs: Add device memory registration ioctl support

Adding new ioctl method for the MR object - REG_DM_MR.

This command can be used by users to register an allocated
device memory buffer as an MR and receive lkey and rkey
to be used within work requests.

It is added as a new method under the MR object and using a new
ib_device callback - reg_dm_mr.
The command creates a standard ib_mr object which represents the
registered memory.

Signed-off-by: Ariel Levkovich <lariel@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/Makefile
drivers/infiniband/core/uverbs_std_types.c
drivers/infiniband/core/uverbs_std_types_mr.c [new file with mode: 0644]
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h
include/rdma/uverbs_ioctl.h
include/uapi/rdma/ib_user_ioctl_cmds.h