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: Add ioctl command to get a device context
Allow future extensions of the get context command through the uverbs ioctl kabi. Unlike the uverbs version this does not return an async_fd as well, that has to be done with another command. Link: https://lore.kernel.org/r/1578506740-22188-5-git-send-email-yishaih@mellanox.com Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
@@ -68,6 +68,7 @@ enum uverbs_methods_device {
|
||||
UVERBS_METHOD_INVOKE_WRITE,
|
||||
UVERBS_METHOD_INFO_HANDLES,
|
||||
UVERBS_METHOD_QUERY_PORT,
|
||||
UVERBS_METHOD_GET_CONTEXT,
|
||||
};
|
||||
|
||||
enum uverbs_attrs_invoke_write_cmd_attr_ids {
|
||||
@@ -81,6 +82,10 @@ enum uverbs_attrs_query_port_cmd_attr_ids {
|
||||
UVERBS_ATTR_QUERY_PORT_RESP,
|
||||
};
|
||||
|
||||
enum uverbs_attrs_get_context_attr_ids {
|
||||
UVERBS_ATTR_GET_CONTEXT_NUM_COMP_VECTORS,
|
||||
};
|
||||
|
||||
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