RDMA/bnxt_re: Fix entry size during SRQ create
Subsystems (2)
Selvin Xavier
maintainerPATCH 1/1 RDMA/bnxt_re: Fix entry size during SRQ create
Only static WQE is supported for SRQ. So always
use the max supported SGEs while calculating
SRQ entry size.
Fixes 2bb3c32c5c5f ("RDMA/bnxt_re: Change wr posting logic to accommodate variable wqes")
Signed-off-by Devesh Sharma <[email protected]>
Signed-off-by Selvin Xavier <[email protected]>
--- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/bnxt_re/ib_verbs.c +2 -2
@@ -1657,8 +1657,8 @@ int bnxt_re_create_srq(struct ib_srq *ib_srq, srq->qplib_srq.max_wqe = entries; srq->qplib_srq.max_sge = srq_init_attr->attr.max_sge; - srq->qplib_srq.wqe_size = -bnxt_re_get_rwqe_size (srq->qplib_srq.max_sge); +/* 128 byte wqe size for SRQ . So use max sges */ + srq->qplib_srq.wqe_size =bnxt_re_get_rwqe_size (dev_attr->max_srq_sges); srq->qplib_srq.threshold = srq_init_attr->attr.srq_limit; srq->srq_limit = srq_init_attr->attr.srq_limit; srq->qplib_srq.eventq_hw_ring_id = rdev->nq[0 ].ring_id;
Signature · 1 line
2.5.5
Quoted 10 lines · Selvin Xavier
Only static WQE is supported for SRQ. So always
use the max supported SGEs while calculating
SRQ entry size.Fixes 2bb3c32c5c5f ("RDMA/bnxt_re: Change wr posting logic to accommodate variable wqes")Signed-off-by Devesh Sharma <[email protected]>Signed-off-by Selvin Xavier <[email protected]>--- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Applied to for-next, thanks
Jason