aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSelvin Xavier <[email protected]>2024-08-18 21:47:26 -0700
committerJason Gunthorpe <[email protected]>2024-08-27 10:15:57 -0300
commitd8ea645d6984c84a87032063a0941f15a323831f (patch)
tree6f785355ebe8680adccb435dc12b292b21fad04b /include
parentb930d0bac9c671c053dd66229010ca9298e84aab (diff)
RDMA/bnxt_re: Handle variable WQE support for user applications
User library calculates the number of slots required for user applications and it can pass that information to the driver. Driver can use this value and update the HW directly. This mechanism is currently used only for the newly introduced variable size WQEs. Extend the bnxt_re_qp_req structure to pass the Send Queue slot count. Reorganize the code to get the sq_slots before initializing the Send Queue attributes. Link: https://patch.msgid.link/r/[email protected] Signed-off-by: Hongguang Gao <[email protected]> Signed-off-by: Selvin Xavier <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/rdma/bnxt_re-abi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/rdma/bnxt_re-abi.h b/include/uapi/rdma/bnxt_re-abi.h
index e61104f35d73..71140618700a 100644
--- a/include/uapi/rdma/bnxt_re-abi.h
+++ b/include/uapi/rdma/bnxt_re-abi.h
@@ -118,10 +118,16 @@ struct bnxt_re_resize_cq_req {
__aligned_u64 cq_va;
};
+enum bnxt_re_qp_mask {
+ BNXT_RE_QP_REQ_MASK_VAR_WQE_SQ_SLOTS = 0x1,
+};
+
struct bnxt_re_qp_req {
__aligned_u64 qpsva;
__aligned_u64 qprva;
__aligned_u64 qp_handle;
+ __aligned_u64 comp_mask;
+ __u32 sq_slots;
};
struct bnxt_re_qp_resp {