From: Leon Romanovsky <leon@kernel.org>
To: Devesh Sharma <devesh.sharma@broadcom.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [rdma-core 3/4] bnxt_re/lib: consolidate hwque and swque in common structure
Date: Tue, 4 May 2021 08:49:19 +0300 [thread overview]
Message-ID: <YJDgX1gIJ0UYqXEc@unreal> (raw)
In-Reply-To: <20210503064802.457482-4-devesh.sharma@broadcom.com>
On Mon, May 03, 2021 at 12:18:01PM +0530, Devesh Sharma wrote:
> Consolidating hardware queue (hwque) and software queue (swque)
> under a single bookkeeping data structure bnxt_re_joint_queue.
>
> This is to ease the hardware and software queue management. Further
> reduces the size of bnxt_re_qp structure.
>
> Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
> ---
> providers/bnxt_re/db.c | 6 +-
> providers/bnxt_re/main.h | 13 ++--
> providers/bnxt_re/verbs.c | 133 +++++++++++++++++++++-----------------
> 3 files changed, 87 insertions(+), 65 deletions(-)
<...>
> static void bnxt_re_free_queues(struct bnxt_re_qp *qp)
> {
> - if (qp->rqq) {
> - if (qp->rwrid)
> - free(qp->rwrid);
> - pthread_spin_destroy(&qp->rqq->qlock);
> - bnxt_re_free_aligned(qp->rqq);
> + if (qp->jrqq) {
> + if (qp->jrqq->swque)
> + free(qp->jrqq->swque);
You don't need "if() free()", use "free" directly in all places.
Thanks
next prev parent reply other threads:[~2021-05-04 5:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-03 6:47 [rdma-core 0/4] Broadcom's rdma provider lib update Devesh Sharma
2021-05-03 6:47 ` [rdma-core 1/4] bnxt_re/lib: fix AH validity check Devesh Sharma
2021-05-03 13:33 ` Jason Gunthorpe
2021-05-05 15:01 ` Devesh Sharma
2021-05-03 6:48 ` [rdma-core 2/4] bnxt_re/lib: align base sq entry structure to 16B Devesh Sharma
2021-05-03 6:48 ` [rdma-core 3/4] bnxt_re/lib: consolidate hwque and swque in common structure Devesh Sharma
2021-05-04 5:49 ` Leon Romanovsky [this message]
2021-05-05 15:01 ` Devesh Sharma
2021-05-03 6:48 ` [rdma-core 4/4] bnxt_re/lib: let bnxt_re_dev store device attrs Devesh Sharma
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=YJDgX1gIJ0UYqXEc@unreal \
--to=leon@kernel.org \
--cc=devesh.sharma@broadcom.com \
--cc=linux-rdma@vger.kernel.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