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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user