RDMA/core: Add device method for registering dma-buf based memory region
authorJianxin Xiong <jianxin.xiong@intel.com>
Tue, 15 Dec 2020 21:27:14 +0000 (13:27 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 20 Jan 2021 20:07:52 +0000 (16:07 -0400)
commit3bc489e8827a93b14d27211ae0576b3c1de85000
tree0207af99865f23d15c42c70c9dda321e471baf34
parent368c0159d492d7fbdb5791b40c9263ec4e97a10f
RDMA/core: Add device method for registering dma-buf based memory region

Dma-buf based memory region requires one extra parameter and is processed
quite differently. Adding a separate method allows clean separation from
regular memory regions.

Link: https://lore.kernel.org/r/1608067636-98073-3-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/device.c
include/rdma/ib_verbs.h