From: Jason Gunthorpe <jgg@ziepe.ca>
To: Selvin Xavier <selvin.xavier@broadcom.com>
Cc: leon@kernel.org, linux-rdma@vger.kernel.org,
andrew.gospodarek@broadcom.com
Subject: Re: [PATCH for-next 2/2] RDMA/bnxt_re: Expose the MSN table capability for user library
Date: Mon, 6 May 2024 14:47:01 -0300 [thread overview]
Message-ID: <20240506174701.GG901876@ziepe.ca> (raw)
In-Reply-To: <1714795819-12543-3-git-send-email-selvin.xavier@broadcom.com>
On Fri, May 03, 2024 at 09:10:19PM -0700, Selvin Xavier wrote:
> Expose the MSN table capability to the user space. Rename
> the current macro as the driver/library is allocating the
> table based on the MSN capability reported by FW.
>
> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
> ---
> drivers/infiniband/hw/bnxt_re/ib_verbs.c | 3 +++
> include/uapi/rdma/bnxt_re-abi.h | 2 +-
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c
> index ce9c5ba..d261b09 100644
> --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c
> +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c
> @@ -4201,6 +4201,9 @@ int bnxt_re_alloc_ucontext(struct ib_ucontext *ctx, struct ib_udata *udata)
> if (rdev->pacing.dbr_pacing)
> resp.comp_mask |= BNXT_RE_UCNTX_CMASK_DBR_PACING_ENABLED;
>
> + if (_is_host_msn_table(rdev->qplib_res.dattr->dev_cap_flags2))
> + resp.comp_mask |= BNXT_RE_UCNTX_CMASK_MSN_TABLE_ENABLED;
> +
> if (udata->inlen >= sizeof(ureq)) {
> rc = ib_copy_from_udata(&ureq, udata, min(udata->inlen, sizeof(ureq)));
> if (rc)
> diff --git a/include/uapi/rdma/bnxt_re-abi.h b/include/uapi/rdma/bnxt_re-abi.h
> index c0c34ac..e61104f 100644
> --- a/include/uapi/rdma/bnxt_re-abi.h
> +++ b/include/uapi/rdma/bnxt_re-abi.h
> @@ -55,7 +55,7 @@ enum {
> BNXT_RE_UCNTX_CMASK_WC_DPI_ENABLED = 0x04ULL,
> BNXT_RE_UCNTX_CMASK_DBR_PACING_ENABLED = 0x08ULL,
> BNXT_RE_UCNTX_CMASK_POW2_DISABLED = 0x10ULL,
> - BNXT_RE_COMP_MASK_UCNTX_HW_RETX_ENABLED = 0x40,
> + BNXT_RE_UCNTX_CMASK_MSN_TABLE_ENABLED = 0x40,
Wah? How can you rename this bit in the uapi?
Looks really strange, userspace is even using this constant.
Please explain in detail what is going on here in the commit message. :\
Jason
next prev parent reply other threads:[~2024-05-06 17:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-04 4:10 [PATCH for-next 0/2] RDMA/bnxt_re: MSN table capability check for latest adapters Selvin Xavier
2024-05-04 4:10 ` [PATCH for-next 1/2] RDMA/bnxt_re: Allow MSN table capability check Selvin Xavier
2024-05-05 13:46 ` Leon Romanovsky
2024-05-06 14:00 ` Selvin Xavier
2024-05-08 8:22 ` Leon Romanovsky
2024-05-04 4:10 ` [PATCH for-next 2/2] RDMA/bnxt_re: Expose the MSN table capability for user library Selvin Xavier
2024-05-06 17:47 ` Jason Gunthorpe [this message]
2024-05-07 4:27 ` Selvin Xavier
2024-05-07 16:34 ` Jason Gunthorpe
2024-05-07 19:36 ` Selvin Xavier
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=20240506174701.GG901876@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=andrew.gospodarek@broadcom.com \
--cc=leon@kernel.org \
--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