RDMA/uverbs: Add uverbs command for dma-buf based MR registration
authorJianxin Xiong <jianxin.xiong@intel.com>
Tue, 15 Dec 2020 21:27:15 +0000 (13:27 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 20 Jan 2021 20:07:52 +0000 (16:07 -0400)
commitbfe0cc6eb2491aeae2bba02a305fcce13cd90624
treec297706966e97f1e676c5b35198c28c930fa270e
parent3bc489e8827a93b14d27211ae0576b3c1de85000
RDMA/uverbs: Add uverbs command for dma-buf based MR registration

Implement a new uverbs ioctl method for memory registration with file
descriptor as an extra parameter.

Link: https://lore.kernel.org/r/1608067636-98073-4-git-send-email-jianxin.xiong@intel.com
Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Acked-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Acked-by: Christian Koenig <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_std_types_mr.c
include/uapi/rdma/ib_user_ioctl_cmds.h