History

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.

Jason Gunthorpe committed 6 years ago

Commit a1123411 parent da57db26 files · +119 −62Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/rdma/ib_user_ioctl_cmds.h+5−0
@@ -68,6 +68,7 @@ enum uverbs_methods_device { · 67 unmodified lines
68 UVERBS_METHOD_INVOKE_WRITE,68 UVERBS_METHOD_INVOKE_WRITE,
69 UVERBS_METHOD_INFO_HANDLES,69 UVERBS_METHOD_INFO_HANDLES,
70 UVERBS_METHOD_QUERY_PORT,70 UVERBS_METHOD_QUERY_PORT,
71 UVERBS_METHOD_GET_CONTEXT,
71};72};
72 73
73enum uverbs_attrs_invoke_write_cmd_attr_ids {74enum uverbs_attrs_invoke_write_cmd_attr_ids {
@@ -81,6 +82,10 @@ enum uverbs_attrs_query_port_cmd_attr_ids { · 7 unmodified lines
81 UVERBS_ATTR_QUERY_PORT_RESP,82 UVERBS_ATTR_QUERY_PORT_RESP,
82};83};
83 84
85enum uverbs_attrs_get_context_attr_ids {
86 UVERBS_ATTR_GET_CONTEXT_NUM_COMP_VECTORS,
87};
88
84enum uverbs_attrs_create_cq_cmd_attr_ids {89enum uverbs_attrs_create_cq_cmd_attr_ids {
85 UVERBS_ATTR_CREATE_CQ_HANDLE,90 UVERBS_ATTR_CREATE_CQ_HANDLE,
86 UVERBS_ATTR_CREATE_CQ_CQE,91 UVERBS_ATTR_CREATE_CQ_CQE,