From: Cosmin Ratiu <cratiu@nvidia.com>
To: "daniel.zahka@gmail.com" <daniel.zahka@gmail.com>,
"kuba@kernel.org" <kuba@kernel.org>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"willemdebruijn.kernel@gmail.com"
<willemdebruijn.kernel@gmail.com>,
"edumazet@google.com" <edumazet@google.com>,
Boris Pismenny <borisp@nvidia.com>,
"kuniyu@google.com" <kuniyu@google.com>
Subject: Re: [RFC net-next 1/6] psp: steer Rx queues with the virtualization cookie
Date: Mon, 24 Aug 2026 15:09:31 +0000 [thread overview]
Message-ID: <4aa7871fcfc4a662d32a7ca7929b07a42a89ff6d.camel@nvidia.com> (raw)
In-Reply-To: <20260824080122.17be0e16@kernel.org>
On Mon, 2026-08-24 at 08:01 -0700, Jakub Kicinski wrote:
> On Sun, 23 Aug 2026 11:31:03 -0400 Daniel Zahka wrote:
> > On Sat Aug 22, 2026 at 6:55 PM EDT, Jakub Kicinski wrote:
> > > @@ -72,6 +90,27 @@ name: psp
> > > Present when in associated namespace, absent when in
> > > primary/host
> > > namespace.
> > > type: flag
> > > + -
> > > + name: vc-steer-cap
> > > + doc: |
> > > + Device can steer received traffic on the PSP
> > > virtualization
> > > + cookie (VC). The VC is split into a 32b reserved part,
> > > a 16b
> > > + queue ID the sender is asking the peer to send to, and
> > > a 16b
> > > + queue ID granting the peer's own request. Steering
> > > installs low
> > > + priority rules matching the latter, which win over the
> > > RSS table
> > > + result. Only needed for the rx direction; granting a
> > > peer's
> > > + request is just header generation and needs no device
> > > support.
> > > + type: flag
> > > + -
> > > + name: vc-steer-ena
> > > + doc: |
> > > + Directions taking part in VC based queue steering.
> > > Leave the
> > > + attribute out of a dev-set request to keep the current
> > > setting.
> > > + Applies to associations created from then on, existing
> > > ones keep
> > > + the setting they were created with.
> > > + type: u32
> > > + enum: vc-steer
> > > + enum-as-flags: true
> > >
> >
> > Should vc-steer-ena be a connection level setting? Maybe it could
> > go
> > into rx-assoc. The way it's implemented here, the state is already
> > per
> > assoc.
>
> That's what I started with but then given the security implications
> of the current simple design I could not think of a reason do
> configure
> this connection by connection. Besides the SW stack responsible for
> security is likely somewhat orthogonal to steering configuration.
> Should have put this in the cover letter as well.
I looked at implementing the current design in mlx5 and a per-assoc
setting wouldn't be enough, because flipping this on requires device-
level steering changes (basically adding num_queues steering rules).
For device-level settings, we conveniently have the .set_config()
callback. There's no per-assoc callbacks, but theoretically, we could
detect the first use of VC-based steering and do things. Doesn't feel
that clean though compared to device-level.
Cosmin.
next prev parent reply other threads:[~2026-08-24 15:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-22 22:55 [RFC net-next 0/6] psp: use virt cookie as Rx steering hint Jakub Kicinski
2026-08-22 22:55 ` [RFC net-next 1/6] psp: steer Rx queues with the virtualization cookie Jakub Kicinski
2026-08-23 15:31 ` Daniel Zahka
2026-08-24 15:01 ` Jakub Kicinski
2026-08-24 15:09 ` Cosmin Ratiu [this message]
2026-08-24 15:19 ` Jakub Kicinski
2026-08-23 18:18 ` Willem de Bruijn
2026-08-22 22:55 ` [RFC net-next 2/6] netdevsim: support PSP VC based queue steering Jakub Kicinski
2026-08-22 22:55 ` [RFC net-next 3/6] selftests: drv-net: psp: move the PSP test plumbing into psp_lib.py Jakub Kicinski
2026-08-22 22:55 ` [RFC net-next 4/6] selftests: drv-net: psp_steer: test PSP VC based queue steering Jakub Kicinski
2026-08-22 22:55 ` [RFC net-next 5/6] selftests: drv-net: psp_steer: test where PSP steering sits in the Rx pipeline Jakub Kicinski
2026-08-22 22:55 ` [RFC net-next 6/6] selftests: drv-net: psp_steer: cover corner cases and races Jakub Kicinski
2026-08-23 17:48 ` [RFC net-next 0/6] psp: use virt cookie as Rx steering hint Willem de Bruijn
2026-08-24 15:05 ` Cosmin Ratiu
2026-08-25 9:52 ` Cosmin Ratiu
2026-08-25 18:55 ` Jakub Kicinski
2026-08-24 15:11 ` Jakub Kicinski
2026-08-24 18:04 ` Willem de Bruijn
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=4aa7871fcfc4a662d32a7ca7929b07a42a89ff6d.camel@nvidia.com \
--to=cratiu@nvidia.com \
--cc=borisp@nvidia.com \
--cc=daniel.zahka@gmail.com \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=netdev@vger.kernel.org \
--cc=willemdebruijn.kernel@gmail.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