From: Jason Gunthorpe <jgg@ziepe.ca>
To: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Cc: leon@kernel.org, linux-rdma@vger.kernel.org,
andrew.gospodarek@broadcom.com, selvin.xavier@broadcom.com,
kalesh-anakkur.purayil@broadcom.com
Subject: Re: [PATCH rdma-next v2 8/8] RDMA/bnxt_re: Enable app allocated QPs
Date: Tue, 14 Apr 2026 09:34:34 -0300 [thread overview]
Message-ID: <20260414123434.GX3694781@ziepe.ca> (raw)
In-Reply-To: <CAHHeUGUwCBjho3oJLJdOeTSF3cp1U_DYsN_satsCo4_aEKLWOQ@mail.gmail.com>
On Tue, Apr 14, 2026 at 11:43:51AM +0530, Sriharsha Basavapatna wrote:
> On Fri, Apr 10, 2026 at 8:57 PM Jason Gunthorpe <jgg@ziepe.ca> wrote:
> >
> > On Fri, Mar 27, 2026 at 02:47:55PM +0530, Sriharsha Basavapatna wrote:
> > > The driver supports a new comp_mask: APP_ALLOCATED_QP_ENABLE.
> > > The application sets this comp_mask bit in the CREATE_QP ureq
> > > to indicate direct control of the QP. The driver goes through
> > > the required processing for app allocated QPs. Only variable
> > > WQE mode is supported for these QPs.
> >
> > I thought we talked about this, no weird names like this.
> Are you talking about the comp_mask name or the wqe_mode (VARIABLE)
> name? We used the comp_mask name (APP_ALLOCATED_QP) because the
> application allocates (and owns/manages) this QP memory instead of the
> library.
> If it is the comp_mask, how about one of these alternatives?
> - USER_MEMORY_QP
> - USER_MANAGED_QP
> - USER_CONFIGURABLE_QP
> - EXTERNAL_MEMORY_QP
> - DIRECT_ACCESS_QP
>
> For the WQE variable mode, please see my response below.
Still no, make the flags reflect micro functionality relative to the
kernel operation. None of the above in any way explain what the flag
is doing to the ioctl.
The only thing the flag does is this:
> > > @@ -1734,6 +1734,8 @@ static int bnxt_re_init_qp_attr(struct bnxt_re_qp *qp, struct bnxt_re_pd *pd,
> > > return qptype;
> > > qplqp->type = (u8)qptype;
> > > qplqp->wqe_mode = bnxt_re_is_var_size_supported(rdev, uctx);
> > > + if (app_qp && qplqp->wqe_mode != BNXT_QPLIB_WQE_MODE_VARIABLE)
> > > + return -EOPNOTSUPP;
> >
> > Give a sensible name for whatever this is and use it only for
> > this.
So what is this even? FORCE_WQE_MODE_TO_VARIABLE?
> > I kind of thinking you can just fully drop it? What is the point in
> > checking userspace set VARIABLE? It isn't signalling HW and it isn't
> > protecting anything.
> VARIABLE wqe_mode is not something that we introduced in this series.
> It already exists and is understood by the FW/HW. In
> bnxt_qplib_create_qp(), hardware is signaled through flags.
Yes, and it's fine, you added app_qp and the only thing it does is
check that userspace set VARIABLE. Why?
Jason
next prev parent reply other threads:[~2026-04-14 12:34 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-27 9:17 [PATCH rdma-next v2 0/8] RDMA/bnxt_re: Support QP uapi extensions Sriharsha Basavapatna
2026-03-27 9:17 ` [PATCH rdma-next v2 1/8] RDMA/bnxt_re: Refactor bnxt_re_init_user_qp() Sriharsha Basavapatna
2026-03-27 9:17 ` [PATCH rdma-next v2 2/8] RDMA/bnxt_re: Update rq depth for app allocated QPs Sriharsha Basavapatna
2026-03-27 9:17 ` [PATCH rdma-next v2 3/8] RDMA/bnxt_re: Update sq " Sriharsha Basavapatna
2026-03-27 9:17 ` [PATCH rdma-next v2 4/8] RDMA/bnxt_re: Update umem " Sriharsha Basavapatna
2026-03-27 9:17 ` [PATCH rdma-next v2 5/8] RDMA/bnxt_re: Update msn table size " Sriharsha Basavapatna
2026-03-27 9:17 ` [PATCH rdma-next v2 6/8] RDMA/bnxt_re: Update hwq depth " Sriharsha Basavapatna
2026-03-27 9:17 ` [PATCH rdma-next v2 7/8] RDMA/bnxt_re: Support doorbells " Sriharsha Basavapatna
2026-03-27 9:17 ` [PATCH rdma-next v2 8/8] RDMA/bnxt_re: Enable " Sriharsha Basavapatna
2026-04-10 15:27 ` Jason Gunthorpe
2026-04-14 6:13 ` Sriharsha Basavapatna
2026-04-14 12:34 ` Jason Gunthorpe [this message]
2026-04-14 13:40 ` Sriharsha Basavapatna
2026-04-14 13:54 ` Jason Gunthorpe
2026-04-14 14:06 ` Sriharsha Basavapatna
2026-04-14 14:19 ` Jason Gunthorpe
2026-04-14 14:34 ` Sriharsha Basavapatna
2026-04-14 15:09 ` Jason Gunthorpe
2026-04-14 15:14 ` Sriharsha Basavapatna
2026-04-10 15:25 ` [PATCH rdma-next v2 0/8] RDMA/bnxt_re: Support QP uapi extensions Jason Gunthorpe
2026-04-14 6:13 ` Sriharsha Basavapatna
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=20260414123434.GX3694781@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=andrew.gospodarek@broadcom.com \
--cc=kalesh-anakkur.purayil@broadcom.com \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=selvin.xavier@broadcom.com \
--cc=sriharsha.basavapatna@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