diff mbox series

[RFC,rdma-core,1/3] Update kernel headers

Message ID 1541428068-17056-2-git-send-email-yishaih@mellanox.com (mailing list archive)
State RFC
Headers show
Series Introduce ibv_advise_mr verb | expand

Commit Message

Yishai Hadas Nov. 5, 2018, 2:27 p.m. UTC
From: Moni Shoua <monis@mellanox.com>

To commit 1d888793eaef ("IB/uverbs: Add support to advise_mr")

Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
---
 kernel-headers/rdma/ib_user_ioctl_cmds.h  | 8 ++++++++
 kernel-headers/rdma/ib_user_ioctl_verbs.h | 9 +++++++++
 2 files changed, 17 insertions(+)
diff mbox series

Patch

diff --git a/kernel-headers/rdma/ib_user_ioctl_cmds.h b/kernel-headers/rdma/ib_user_ioctl_cmds.h
index 2c881aa..ddfad45 100644
--- a/kernel-headers/rdma/ib_user_ioctl_cmds.h
+++ b/kernel-headers/rdma/ib_user_ioctl_cmds.h
@@ -135,6 +135,7 @@  enum uverbs_attrs_reg_dm_mr_cmd_attr_ids {
 
 enum uverbs_methods_mr {
 	UVERBS_METHOD_DM_MR_REG,
+	UVERBS_METHOD_ADVISE_MR,
 };
 
 enum uverbs_attrs_create_counters_cmd_attr_ids {
@@ -157,4 +158,11 @@  enum uverbs_methods_actions_counters_ops {
 	UVERBS_METHOD_COUNTERS_READ,
 };
 
+enum uverbs_attrs_advise_mr_cmd_attr_ids {
+	UVERBS_ATTR_ADVISE_MR_PD_HANDLE,
+	UVERBS_ATTR_ADVISE_MR_ADVICE,
+	UVERBS_ATTR_ADVISE_MR_FLAGS,
+	UVERBS_ATTR_ADVISE_MR_SGE_LIST,
+};
+
 #endif
diff --git a/kernel-headers/rdma/ib_user_ioctl_verbs.h b/kernel-headers/rdma/ib_user_ioctl_verbs.h
index 6cdf192..c117712 100644
--- a/kernel-headers/rdma/ib_user_ioctl_verbs.h
+++ b/kernel-headers/rdma/ib_user_ioctl_verbs.h
@@ -157,4 +157,13 @@  enum ib_uverbs_read_counters_flags {
 	IB_UVERBS_READ_COUNTERS_PREFER_CACHED = 1 << 0,
 };
 
+enum ib_uverbs_advise_mr_advice {
+	IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH,
+};
+
+enum ib_uverbs_advise_mr_flag {
+	IB_UVERBS_ADVISE_MR_FLAG_SYNC = (1 << 0),
+	IB_UVERBS_ADVISE_MR_FLAG_WRITE_ACCESS = (1 << 1),
+};
+
 #endif