IB/uverbs: Expose UAPI to query ucontext
Expose UAPI to query ucontext, this will let user space application that didn't allocate the ucontext but has access to by owning the matching command FD to retrieve the ucontext information. Link: https://lore.kernel.org/r/20200630093916.332097-4-leon@kernel.org Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
committed by
Jason Gunthorpe
parent
04c0a5fcfc
commit
1c8fb1ea5a
@@ -69,6 +69,7 @@ enum uverbs_methods_device {
|
||||
UVERBS_METHOD_INFO_HANDLES,
|
||||
UVERBS_METHOD_QUERY_PORT,
|
||||
UVERBS_METHOD_GET_CONTEXT,
|
||||
UVERBS_METHOD_QUERY_CONTEXT,
|
||||
};
|
||||
|
||||
enum uverbs_attrs_invoke_write_cmd_attr_ids {
|
||||
@@ -87,6 +88,11 @@ enum uverbs_attrs_get_context_attr_ids {
|
||||
UVERBS_ATTR_GET_CONTEXT_CORE_SUPPORT,
|
||||
};
|
||||
|
||||
enum uverbs_attrs_query_context_attr_ids {
|
||||
UVERBS_ATTR_QUERY_CONTEXT_NUM_COMP_VECTORS,
|
||||
UVERBS_ATTR_QUERY_CONTEXT_CORE_SUPPORT,
|
||||
};
|
||||
|
||||
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