Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions providers/bnxt_re/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 1 addition & 3 deletions providers/bnxt_re/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down