aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/ib_user_verbs.h
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2018-02-21 18:12:43 +0200
committerDoug Ledford <dledford@redhat.com>2018-02-22 22:31:18 -0500
commit372e15c5db5f3f15423a2e6e6a71b77b39026ecf (patch)
tree49f0ba8cab49c69da0ea801d12dabe4f616ffb15 /include/uapi/rdma/ib_user_verbs.h
parentRDMA/uverbs: Replace user's types with kernel's types (diff)
downloadlinux-dev-372e15c5db5f3f15423a2e6e6a71b77b39026ecf.tar.xz
linux-dev-372e15c5db5f3f15423a2e6e6a71b77b39026ecf.zip
RDMA/uverbs: Reduce number of command header flags checks
Simplify the code by directly checking the availability of extended command flog instead of doing multiple shift operations. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/uapi/rdma/ib_user_verbs.h')
-rw-r--r--include/uapi/rdma/ib_user_verbs.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/uapi/rdma/ib_user_verbs.h b/include/uapi/rdma/ib_user_verbs.h
index 04d0e67b1312..d56fba09dc8a 100644
--- a/include/uapi/rdma/ib_user_verbs.h
+++ b/include/uapi/rdma/ib_user_verbs.h
@@ -141,10 +141,7 @@ struct ib_uverbs_cq_moderation_caps {
*/
#define IB_USER_VERBS_CMD_COMMAND_MASK 0xff
-#define IB_USER_VERBS_CMD_FLAGS_MASK 0xff000000u
-#define IB_USER_VERBS_CMD_FLAGS_SHIFT 24
-
-#define IB_USER_VERBS_CMD_FLAG_EXTENDED 0x80
+#define IB_USER_VERBS_CMD_FLAG_EXTENDED 0x80000000u
struct ib_uverbs_cmd_hdr {
__u32 command;