IB/uverbs: Add alloc/free dm uverbs ioctl support
This change adds uverbs support for allocation/freeing of device memory commands. A new uverbs object is defined of type idr to represent and track the new resource type allocation per context. The API requires provider driver to implement 2 new ib_device callbacks - one for allocation and one for deallocation which return and accept (respectively) the ib_dm object which represents the allocated memory on the device. The support is added via the ioctl command infrastructure only. Signed-off-by:Ariel Levkovich <lariel@mellanox.com> Signed-off-by:
Leon Romanovsky <leonro@mellanox.com> Signed-off-by:
Jason Gunthorpe <jgg@mellanox.com>
Showing
- drivers/infiniband/core/Makefile 1 addition, 1 deletiondrivers/infiniband/core/Makefile
- drivers/infiniband/core/uverbs.h 1 addition, 0 deletionsdrivers/infiniband/core/uverbs.h
- drivers/infiniband/core/uverbs_std_types.c 2 additions, 1 deletiondrivers/infiniband/core/uverbs_std_types.c
- drivers/infiniband/core/uverbs_std_types_dm.c 108 additions, 0 deletionsdrivers/infiniband/core/uverbs_std_types_dm.c
- include/rdma/ib_verbs.h 19 additions, 1 deletioninclude/rdma/ib_verbs.h
- include/uapi/rdma/ib_user_ioctl_cmds.h 15 additions, 0 deletionsinclude/uapi/rdma/ib_user_ioctl_cmds.h
Loading
Please register or sign in to comment