RDMA/mlx5: Add support for dmabuf to devx umem
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Sep 2022 14:20:55 +0000 (11:20 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 27 Sep 2022 13:15:24 +0000 (10:15 -0300)
commit9af859c58d0f169ead0ed95204cdd891b0ee623a
treefb474014d3d9f71b3faf5dfc4b9ebd0f5806b92a
parent015bda8abd3a6a77656e60b36d499c43a2c0f0a1
RDMA/mlx5: Add support for dmabuf to devx umem

This is modeled after the similar EFA enablement in commit
66f4817b5712 ("RDMA/efa: Add support for dmabuf memory regions").

Like EFA there is no support for revocation so we simply call the
ib_umem_dmabuf_get_pinned() to obtain a umem instead of the normal
ib_umem_get().  Everything else stays the same.

Link: https://lore.kernel.org/r/3-v1-bd147097458e+ede-umem_dmabuf_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/devx.c
include/uapi/rdma/mlx5_user_ioctl_cmds.h