[PATCH rdma-core 3/3] libqedr: Remove duplication of RQ configuration

Ram Amrani
2017-02-16T05:56:11Z

The max_wr and max_sges are configured twice in the same function.
Remove the redundant configuration.

Signed-off-by: Ram Amrani <Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
Signed-off-by: Ariel Elior <Ariel.Elior-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
---
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,