The max_wr and max_sges are configured twice in the same function. Remove the redundant configuration. Signed-off-by: Ram Amrani <Ram.Amrani@xxxxxxxxxx> Signed-off-by: Ariel Elior <Ariel.Elior@xxxxxxxxxx> --- providers/qedr/qelr_verbs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c index 932115c..95cd429 100644 --- a/providers/qedr/qelr_verbs.c +++ b/providers/qedr/qelr_verbs.c @@ -366,8 +366,6 @@ static inline int qelr_create_qp_buffers_rq(struct qelr_devctx *cxt, max_recv_wr = min_t(uint32_t, max_recv_wr, cxt->max_recv_wr); max_recv_sges = max_recv_wr * cxt->sges_per_recv_wr; max_recv_buf = max_recv_sges * QELR_RQE_ELEMENT_SIZE; - qp->rq.max_wr = max_recv_wr; - qp->rq.max_sges = RDMA_MAX_SGE_PER_RQ_WQE; chain_size = max_recv_buf; rc = qelr_chain_alloc(&qp->rq.chain, chain_size, cxt->kernel_page_size, -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html