diff --git a/providers/bnxt_re/main.h b/providers/bnxt_re/main.h index 067b0c18d..557a19858 100644 --- a/providers/bnxt_re/main.h +++ b/providers/bnxt_re/main.h @@ -360,13 +360,6 @@ static inline struct bnxt_re_ah *to_bnxt_re_ah(struct ibv_ah *ibvah) return container_of(ibvah, struct bnxt_re_ah, ibvah); } -static inline uint32_t bnxt_re_get_sqe_sz(void) -{ - return sizeof(struct bnxt_re_bsqe) + - sizeof(struct bnxt_re_send) + - BNXT_RE_MAX_INLINE_SIZE; -} - static inline uint32_t bnxt_re_get_sqe_hdr_sz(void) { return sizeof(struct bnxt_re_bsqe) + sizeof(struct bnxt_re_send); diff --git a/providers/bnxt_re/verbs.c b/providers/bnxt_re/verbs.c index 051c80b7f..a2c81daf3 100644 --- a/providers/bnxt_re/verbs.c +++ b/providers/bnxt_re/verbs.c @@ -1147,8 +1147,6 @@ static int bnxt_re_check_qp_limits(struct bnxt_re_context *cntx, return EINVAL; if (attr->cap.max_recv_sge > devattr->max_sge) return EINVAL; - if (attr->cap.max_inline_data > BNXT_RE_MAX_INLINE_SIZE) - return EINVAL; if (attr->cap.max_send_wr > devattr->max_qp_wr) return EINVAL; if (attr->cap.max_recv_wr > devattr->max_qp_wr) @@ -1217,7 +1215,7 @@ static int bnxt_re_get_sq_slots(struct bnxt_re_dev *rdev, if (ilsize) { cal_ils = hdr_sz + ilsize; wqe_size = MAX(cal_ils, wqe_size); - wqe_size = align(wqe_size, hdr_sz); + wqe_size = align(wqe_size, stride); } if (wqe_size > max_wqesz) return -EINVAL;