aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/ib_user_ioctl_verbs.h
diff options
context:
space:
mode:
authorMichael Guralnik <michaelgur@mellanox.com>2020-01-08 20:05:39 +0200
committerJason Gunthorpe <jgg@mellanox.com>2020-01-16 15:55:46 -0400
commit811646998e3e64af19524c8e99b790a4043c5f9b (patch)
treef0a5fe851a5f7120514da74201dd6e343d5d734b /include/uapi/rdma/ib_user_ioctl_verbs.h
parentRDMA/uverbs: Add new relaxed ordering memory region access flag (diff)
downloadlinux-dev-811646998e3e64af19524c8e99b790a4043c5f9b.tar.xz
linux-dev-811646998e3e64af19524c8e99b790a4043c5f9b.zip
RDMA/core: Add the core support field to METHOD_GET_CONTEXT
Add the core support field to METHOD_GET_CONTEXT, this field should represent capabilities that are not device-specific. Return support for optional access flags for memory regions. User-space will use this capability to mask the optional access flags for unsupporting kernels. Link: https://lore.kernel.org/r/1578506740-22188-10-git-send-email-yishaih@mellanox.com Signed-off-by: Michael Guralnik <michaelgur@mellanox.com> Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--include/uapi/rdma/ib_user_ioctl_verbs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_ioctl_verbs.h b/include/uapi/rdma/ib_user_ioctl_verbs.h
index 2a165f40ee38..a640bb814be0 100644
--- a/include/uapi/rdma/ib_user_ioctl_verbs.h
+++ b/include/uapi/rdma/ib_user_ioctl_verbs.h
@@ -44,6 +44,10 @@
#define IB_UVERBS_ACCESS_OPTIONAL_FIRST (1 << 20)
#define IB_UVERBS_ACCESS_OPTIONAL_LAST (1 << 29)
+enum ib_uverbs_core_support {
+ IB_UVERBS_CORE_SUPPORT_OPTIONAL_MR_ACCESS = 1 << 0,
+};
+
enum ib_uverbs_access_flags {
IB_UVERBS_ACCESS_LOCAL_WRITE = 1 << 0,
IB_UVERBS_ACCESS_REMOTE_WRITE = 1 << 1,