All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Cosmin Ratiu <cratiu@nvidia.com>
Cc: "daniel.zahka@gmail.com" <daniel.zahka@gmail.com>,
	"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 08:19:54 -0700	[thread overview]
Message-ID: <20260824081954.2cb8eac8@kernel.org> (raw)
In-Reply-To: <4aa7871fcfc4a662d32a7ca7929b07a42a89ff6d.camel@nvidia.com>

On Mon, 24 Aug 2026 15:09:31 +0000 Cosmin Ratiu wrote:
> 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:  
> > > 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.

To be clear - the per-assoc would be in addition to the device level
setting. We'd have to enable the feature and then instead of
snapshoting the device config in psp_assoc_create() we'd have explicit
Netlink flags. We can do this later, the two flags I added here can be
thought of as "enable for all assocs", we can add "enable per-assoc"
device config later. Tho for Tx not echoing a request would be pure
spite...

I implemented the per-assoc things first but then I thought about
deploying this and really there's no reason to plumb this policy thru
Fizz/Thrift handshaking which creates assocs.

  reply	other threads:[~2026-08-24 15:19 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
2026-08-24 15:19         ` Jakub Kicinski [this message]
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=20260824081954.2cb8eac8@kernel.org \
    --to=kuba@kernel.org \
    --cc=borisp@nvidia.com \
    --cc=cratiu@nvidia.com \
    --cc=daniel.zahka@gmail.com \
    --cc=edumazet@google.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.