]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/uverbs: Implement an ioctl that can call write and write_ex handlers
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 30 Nov 2018 11:06:21 +0000 (13:06 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 18 Dec 2018 19:12:48 +0000 (14:12 -0500)
commit4785860e04bc8d7e244b25257168e1cf8a5529ab
treea8f6df83239aaa552a69a1f080c6649961aa088f
parent241414967fb92fdd6f4da27df74b9c9eb11d05f7
RDMA/uverbs: Implement an ioctl that can call write and write_ex handlers

Now that the handlers do not process their own udata we can make a
sensible ioctl that wrappers them. The ioctl follows the same format as
the write_ex() and has the user explicitly specify the core and driver
in/out opaque structures and a command number.

This works for all forms of write commands.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/Makefile
drivers/infiniband/core/rdma_core.h
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_ioctl.c
drivers/infiniband/core/uverbs_std_types.c
drivers/infiniband/core/uverbs_std_types_device.c [new file with mode: 0644]
drivers/infiniband/core/uverbs_uapi.c
include/uapi/rdma/ib_user_ioctl_cmds.h
include/uapi/rdma/ib_user_verbs.h