aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/ib_user_ioctl_cmds.h
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2020-06-30 12:39:16 +0300
committerJason Gunthorpe <jgg@nvidia.com>2020-07-06 19:50:34 -0300
commit6c01e6b218aea09ec9947cbf88a4db97b4dd155c (patch)
tree1ac7392f649fb03390af284f0fd55f2e18e54deb /include/uapi/rdma/ib_user_ioctl_cmds.h
parentRDMA/mlx5: Introduce UAPI to query PD attributes (diff)
downloadlinux-dev-6c01e6b218aea09ec9947cbf88a4db97b4dd155c.tar.xz
linux-dev-6c01e6b218aea09ec9947cbf88a4db97b4dd155c.zip
IB/uverbs: Expose UAPI to query MR
Expose UAPI to query MR, this will let user space application that didn't allocate the MR but has access to by owning the matching command FD to retrieve its information. Link: https://lore.kernel.org/r/20200630093916.332097-8-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>
Diffstat (limited to 'include/uapi/rdma/ib_user_ioctl_cmds.h')
-rw-r--r--include/uapi/rdma/ib_user_ioctl_cmds.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_ioctl_cmds.h b/include/uapi/rdma/ib_user_ioctl_cmds.h
index 83b6e71ea216..99dcabf61a71 100644
--- a/include/uapi/rdma/ib_user_ioctl_cmds.h
+++ b/include/uapi/rdma/ib_user_ioctl_cmds.h
@@ -248,6 +248,7 @@ enum uverbs_methods_mr {
UVERBS_METHOD_DM_MR_REG,
UVERBS_METHOD_MR_DESTROY,
UVERBS_METHOD_ADVISE_MR,
+ UVERBS_METHOD_QUERY_MR,
};
enum uverbs_attrs_mr_destroy_ids {
@@ -261,6 +262,14 @@ enum uverbs_attrs_advise_mr_cmd_attr_ids {
UVERBS_ATTR_ADVISE_MR_SGE_LIST,
};
+enum uverbs_attrs_query_mr_cmd_attr_ids {
+ UVERBS_ATTR_QUERY_MR_HANDLE,
+ UVERBS_ATTR_QUERY_MR_RESP_LKEY,
+ UVERBS_ATTR_QUERY_MR_RESP_RKEY,
+ UVERBS_ATTR_QUERY_MR_RESP_LENGTH,
+ UVERBS_ATTR_QUERY_MR_RESP_IOVA,
+};
+
enum uverbs_attrs_create_counters_cmd_attr_ids {
UVERBS_ATTR_CREATE_COUNTERS_HANDLE,
};