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.
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -59,6 +59,10 @@ struct mlx4_ib_alloc_ucontext_resp_v3 { · 58 unmodified lines | ||
| 59 | 59 | __u16 bf_regs_per_page; |
| 60 | 60 | }; |
| 61 | 61 | |
| 62 | +enum { | |
| 63 | + MLX4_USER_DEV_CAP_LARGE_CQE = 1L << 0, | |
| 64 | +}; | |
| 65 | + | |
| 62 | 66 | struct mlx4_ib_alloc_ucontext_resp { |
| 63 | 67 | __u32 dev_caps; |
| 64 | 68 | __u32 qp_tab_size; |
| @@ -162,6 +166,10 @@ struct mlx4_ib_rss_caps { · 97 unmodified lines | ||
| 162 | 166 | __u8 reserved[7]; |
| 163 | 167 | }; |
| 164 | 168 | |
| 169 | +enum query_device_resp_mask { | |
| 170 | + MLX4_IB_QUERY_DEV_RESP_MASK_CORE_CLOCK_OFFSET = 1UL << 0, | |
| 171 | +}; | |
| 172 | + | |
| 165 | 173 | struct mlx4_uverbs_ex_query_device_resp { |
| 166 | 174 | __u32 comp_mask; |
| 167 | 175 | __u32 response_length; |