File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
drivers/infiniband/hw/bnxt_re Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -130,11 +130,13 @@ int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw,
130
130
sb -> max_qp_init_rd_atom > BNXT_QPLIB_MAX_OUT_RD_ATOM ?
131
131
BNXT_QPLIB_MAX_OUT_RD_ATOM : sb -> max_qp_init_rd_atom ;
132
132
attr -> max_qp_wqes = le16_to_cpu (sb -> max_qp_wr ) - 1 ;
133
- /*
134
- * 128 WQEs needs to be reserved for the HW (8916). Prevent
135
- * reporting the max number
136
- */
137
- attr -> max_qp_wqes -= BNXT_QPLIB_RESERVED_QP_WRS + 1 ;
133
+ if (!bnxt_qplib_is_chip_gen_p5_p7 (rcfw -> res -> cctx )) {
134
+ /*
135
+ * 128 WQEs needs to be reserved for the HW (8916). Prevent
136
+ * reporting the max number on legacy devices
137
+ */
138
+ attr -> max_qp_wqes -= BNXT_QPLIB_RESERVED_QP_WRS + 1 ;
139
+ }
138
140
139
141
attr -> max_qp_sges = cctx -> modes .wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE ?
140
142
min_t (u32 , sb -> max_sge_var_wqe , BNXT_VAR_MAX_SGE ) : 6 ;
You can’t perform that action at this time.
0 commit comments