aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/mlx4-abi.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-03-13 16:26:46 -0600
committerJason Gunthorpe <jgg@mellanox.com>2018-03-15 15:58:03 -0600
commit48962f5c6fffcb676dd6ebd70f7869cfc6cc8356 (patch)
treebe6a998f00c595dff15cc037f47ffb5e7c8264e6 /include/uapi/rdma/mlx4-abi.h
parentRDMA/rxe: Use structs to describe the uABI instead of opencoding (diff)
downloadlinux-dev-48962f5c6fffcb676dd6ebd70f7869cfc6cc8356.tar.xz
linux-dev-48962f5c6fffcb676dd6ebd70f7869cfc6cc8356.zip
RDMA/mlx4: Move flag constants to uapi header
MLX4_USER_DEV_CAP_LARGE_CQE (via mlx4_ib_alloc_ucontext_resp.dev_caps) and MLX4_IB_QUERY_DEV_RESP_MASK_CORE_CLOCK_OFFSET (via mlx4_uverbs_ex_query_device_resp.comp_mask) are copied directly to userspace and form part of the uAPI. Move them to the uapi header where they belong. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/uapi/rdma/mlx4-abi.h')
-rw-r--r--include/uapi/rdma/mlx4-abi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/rdma/mlx4-abi.h b/include/uapi/rdma/mlx4-abi.h
index d84616adff32..be58594cec87 100644
--- a/include/uapi/rdma/mlx4-abi.h
+++ b/include/uapi/rdma/mlx4-abi.h
@@ -59,6 +59,10 @@ struct mlx4_ib_alloc_ucontext_resp_v3 {
__u16 bf_regs_per_page;
};
+enum {
+ MLX4_USER_DEV_CAP_LARGE_CQE = 1L << 0,
+};
+
struct mlx4_ib_alloc_ucontext_resp {
__u32 dev_caps;
__u32 qp_tab_size;
@@ -162,6 +166,10 @@ struct mlx4_ib_rss_caps {
__u8 reserved[7];
};
+enum query_device_resp_mask {
+ MLX4_IB_QUERY_DEV_RESP_MASK_CORE_CLOCK_OFFSET = 1UL << 0,
+};
+
struct mlx4_uverbs_ex_query_device_resp {
__u32 comp_mask;
__u32 response_length;