From: Leon Romanovsky <leon@kernel.org>
To: Selvin Xavier <selvin.xavier@broadcom.com>
Cc: jgg@ziepe.ca, linux-rdma@vger.kernel.org
Subject: Re: [PATCH for-next] RDMA/bnxt_re: Add resize_cq support
Date: Wed, 29 Mar 2023 10:05:44 +0300 [thread overview]
Message-ID: <20230329070544.GC831478@unreal> (raw)
In-Reply-To: <1678868215-23626-1-git-send-email-selvin.xavier@broadcom.com>
On Wed, Mar 15, 2023 at 01:16:55AM -0700, Selvin Xavier wrote:
> Add resize_cq verb support for user space CQs. Resize operation for
> kernel CQs are not supported now.
>
> Driver should free the current CQ only after user library polls
> for all the completions and switch to new CQ. So after the resize_cq
> is returned from the driver, user libray polls for existing completions
> and store it as temporary data. Once library reaps all completions in the
> current CQ, it invokes the ibv_cmd_poll_cq to inform the driver about
> the resize_cq completion. Adding a check for user CQs in driver's
> poll_cq and complete the resize operation for user CQs.
> Updating uverbs_cmd_mask with poll_cq to support this.
>
> User library changes are available in this pull request.
> https://github.com/linux-rdma/rdma-core/pull/1315
>
> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
> ---
> drivers/infiniband/hw/bnxt_re/ib_verbs.c | 109 +++++++++++++++++++++++++++++++
> drivers/infiniband/hw/bnxt_re/ib_verbs.h | 3 +
> drivers/infiniband/hw/bnxt_re/main.c | 2 +
> drivers/infiniband/hw/bnxt_re/qplib_fp.c | 44 +++++++++++++
> drivers/infiniband/hw/bnxt_re/qplib_fp.h | 5 ++
> include/uapi/rdma/bnxt_re-abi.h | 4 ++
> 6 files changed, 167 insertions(+)
<...>
> +struct bnxt_re_resize_cq_req {
> + __u64 cq_va;
This should be __aligned_u64, see commit:
26b9906612c3 ("RDMA: Change all uapi headers to use __aligned_u64 instead of __u64")
Fixed locally and applied.
Thanks
> +};
> +
> struct bnxt_re_qp_req {
> __aligned_u64 qpsva;
> __aligned_u64 qprva;
> --
> 2.5.5
>
next prev parent reply other threads:[~2023-03-29 7:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-15 8:16 [PATCH for-next] RDMA/bnxt_re: Add resize_cq support Selvin Xavier
2023-03-17 9:08 ` Yunsheng Lin
2023-03-17 10:17 ` Selvin Xavier
2023-03-17 12:23 ` Yunsheng Lin
2023-03-19 2:07 ` Selvin Xavier
2023-03-19 12:02 ` Leon Romanovsky
2023-03-19 17:11 ` Selvin Xavier
2023-03-29 7:05 ` Leon Romanovsky [this message]
2023-03-29 7:09 ` 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=20230329070544.GC831478@unreal \
--to=leon@kernel.org \
--cc=jgg@ziepe.ca \
--cc=linux-rdma@vger.kernel.org \
--cc=selvin.xavier@broadcom.com \
/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;
as well as URLs for NNTP newsgroup(s).