mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
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>
This commit is contained in:
committed by
Doug Ledford
parent
241414967f
commit
4785860e04
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user