diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-11-30 13:06:21 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-12-18 14:12:48 -0500 |
commit | 4785860e04bc8d7e244b25257168e1cf8a5529ab (patch) | |
tree | a8f6df83239aaa552a69a1f080c6649961aa088f /include/uapi/rdma/ib_user_ioctl_cmds.h | |
parent | 241414967fb92fdd6f4da27df74b9c9eb11d05f7 (diff) |
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>
Diffstat (limited to 'include/uapi/rdma/ib_user_ioctl_cmds.h')
-rw-r--r-- | include/uapi/rdma/ib_user_ioctl_cmds.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_ioctl_cmds.h b/include/uapi/rdma/ib_user_ioctl_cmds.h index 2c881aaf05c2..34e71994f4a5 100644 --- a/include/uapi/rdma/ib_user_ioctl_cmds.h +++ b/include/uapi/rdma/ib_user_ioctl_cmds.h @@ -63,6 +63,16 @@ enum { UVERBS_ATTR_UHW_OUT, }; +enum uverbs_methods_device { + UVERBS_METHOD_INVOKE_WRITE, +}; + +enum uverbs_attrs_invoke_write_cmd_attr_ids { + UVERBS_ATTR_CORE_IN, + UVERBS_ATTR_CORE_OUT, + UVERBS_ATTR_WRITE_CMD, +}; + enum uverbs_attrs_create_cq_cmd_attr_ids { UVERBS_ATTR_CREATE_CQ_HANDLE, UVERBS_ATTR_CREATE_CQ_CQE, |