All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>
Cc: netdev-bot+sashiko@kernel.org, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@google.com, pabeni@redhat.com,
	horms@kernel.org, mcoquelin.stm32@gmail.com,
	alexandre.torgue@foss.st.com, linux@armlinux.org.uk,
	lorenzo.bianconi@oss.qualcomm.com, nb@tipi-net.de,
	jitendra.vegiraju@broadcom.com, thomas.petazzoni@bootlin.com,
	alexis.lothore@bootlin.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-stm32@st-md-mailman.stormreply.com, pbrobinson@gmail.com,
	joe@dama.to
Subject: Re: [PATCH net-next v3 1/3] net: rss: Require indir table size or hash key size to support RSS
Date: Thu, 15 Oct 2026 16:36:52 -0700	[thread overview]
Message-ID: <20261015163652.21ff3a98@kernel.org> (raw)
In-Reply-To: <bfc0027a-932e-42f3-93b3-49ab5474abd6@bootlin.com>

On Thu, 8 Oct 2026 11:04:44 +0200 Maxime Chevallier wrote:
> >> Yes it does, that's the intended behaviour here. RSS bits are all optional,
> >> but does it make sense to report hashing params when the indirection table
> >> is size 0 and key len is 0 ?  
> > 
> > Not sure if there's an implementation in the tree but 
> > it's possible to implement poor man's RSS on strict
> > power-of-2 queue set with some hashing built into the
> > Rx engine, without a key. We'd still want to control
> > which fields are hashed in this case.
> > 
> > In the Netlink API we combine the two so we'd break this?  
> 
> Hmm I wasn't aware of that :( I guess the safe choice is to check on -EOPNOTSUPP
> for .get_rxfh() + 0-len indir table / 0-size key and skip the device during the
> dump instead of returning early ?

Not sure I'm following the suggestion, isn't that what the v3
already does? I think the API was suggesting we let the device
progress into the dump, and rely on the existing "unset" checks
before the nla_put_ calls filter out the data which wasn't provided
(which may be all the data).

Not sure it's worth it, could you poke around to see if a device
which reports zero-length key + indir table actually exists?


  reply	other threads:[~2026-10-15 23:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-02 14:28 [PATCH net-next v3 0/3] net: rss: Consider RSS not supported when key and indir sizes are 0 Maxime Chevallier
2026-10-02 14:28 ` [PATCH net-next v3 1/3] net: rss: Require indir table size or hash key size to support RSS Maxime Chevallier
2026-10-02 14:59   ` Nicolai Buchwitz
2026-10-05 14:29   ` netdev-bot+sashiko
2026-10-06  7:59     ` Maxime Chevallier
2026-10-06 23:33       ` Jakub Kicinski
2026-10-08  9:04         ` Maxime Chevallier
2026-10-15 23:36           ` Jakub Kicinski [this message]
2026-10-15 23:38   ` Jakub Kicinski
2026-10-02 14:28 ` [PATCH net-next v3 2/3] net: stmmac: Introduce a helper to check RSS support Maxime Chevallier
2026-10-02 15:00   ` Nicolai Buchwitz
2026-10-02 14:28 ` [PATCH net-next v3 3/3] net: stmmac: Don't set or get RSS parameters when not supported Maxime Chevallier
2026-10-02 15:00   ` Nicolai Buchwitz
2026-10-05 14:29   ` netdev-bot+sashiko

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=20261015163652.21ff3a98@kernel.org \
    --to=kuba@kernel.org \
    --cc=alexandre.torgue@foss.st.com \
    --cc=alexis.lothore@bootlin.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jitendra.vegiraju@broadcom.com \
    --cc=joe@dama.to \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=linux@armlinux.org.uk \
    --cc=lorenzo.bianconi@oss.qualcomm.com \
    --cc=maxime.chevallier@bootlin.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=nb@tipi-net.de \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pbrobinson@gmail.com \
    --cc=thomas.petazzoni@bootlin.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.