From: Ram Amrani <Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
To: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Cc: Ariel.Elior-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org,
Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Ram Amrani <Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
Subject: [PATCH rdma-core 3/3] libqedr: Remove duplication of RQ configuration
Date: Thu, 16 Feb 2017 07:56:11 +0200 [thread overview]
Message-ID: <1487224571-18627-4-git-send-email-Ram.Amrani@cavium.com> (raw)
In-Reply-To: <1487224571-18627-1-git-send-email-Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
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,
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-02-16 5:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-16 5:56 [PATCH rdma-core 0/3] libqedr: Three queue related fixes Ram Amrani
[not found] ` <1487224571-18627-1-git-send-email-Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2017-02-16 5:56 ` [PATCH rdma-core 1/3] libqedr: Check queue mapping return value correctly Ram Amrani
2017-02-16 5:56 ` [PATCH rdma-core 2/3] libqedr: Remove redundant memset Ram Amrani
2017-02-16 5:56 ` Ram Amrani [this message]
2017-02-16 6:10 ` [PATCH rdma-core 0/3] libqedr: Three queue related fixes Leon Romanovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1487224571-18627-4-git-send-email-Ram.Amrani@cavium.com \
--to=ram.amrani-ygcgfspz5w/qt0dzr+alfa@public.gmane.org \
--cc=Ariel.Elior-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
--cc=Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox