Expose RAW QP device handles to user space by extending the UHW part of mlx5_ib_create_qp_resp. This data is returned only when DEVX context is used where it may be applicable.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -351,9 +351,22 @@ struct mlx5_ib_create_qp_rss { · 350 unmodified lines | ||
| 351 | 351 | __u32 flags; |
| 352 | 352 | }; |
| 353 | 353 | |
| 354 | +enum mlx5_ib_create_qp_resp_mask { | |
| 355 | + MLX5_IB_CREATE_QP_RESP_MASK_TIRN = 1UL << 0, | |
| 356 | + MLX5_IB_CREATE_QP_RESP_MASK_TISN = 1UL << 1, | |
| 357 | + MLX5_IB_CREATE_QP_RESP_MASK_RQN = 1UL << 2, | |
| 358 | + MLX5_IB_CREATE_QP_RESP_MASK_SQN = 1UL << 3, | |
| 359 | +}; | |
| 360 | + | |
| 354 | 361 | struct mlx5_ib_create_qp_resp { |
| 355 | 362 | __u32 bfreg_index; |
| 356 | 363 | __u32 reserved; |
| 364 | + __u32 comp_mask; | |
| 365 | + __u32 tirn; | |
| 366 | + __u32 tisn; | |
| 367 | + __u32 rqn; | |
| 368 | + __u32 sqn; | |
| 369 | + __u32 reserved1; | |
| 357 | 370 | }; |
| 358 | 371 | |
| 359 | 372 | struct mlx5_ib_alloc_mw { |