Thread View: linux.kernel.netdev
6 messages
6 total messages
Started by Jakub Kicinski
Mon, 23 Nov 2026 20:55
[PATCH net 0/2] eth: intel: fix unintentional symmetric RSS
Author: Jakub Kicinski
Date: Mon, 23 Nov 2026 20:55
Date: Mon, 23 Nov 2026 20:55
37 lines
8899 bytes
8899 bytes
Fix Intel drivers not handling RXH_XFRM_NO_CHANGE. I had an urge to "fix this in the core" and hide RXH_XFRM_NO_CHANGE from the drivers, by fetching the current config instead. But "NO_CHANGE" values are already part of the driver facing API (hfunc has ETH_RSS_HASH_NO_CHANGE). Besides we can't _completely_ hide RXH_XFRM_NO_CHANGE from the drivers, since we want the drivers to be able to populate the defaults for new RSS contexts. We need a "user didn't say" value there. --- Matt pointed out that the upcoming RSS sizing series breaks NIPA tests, this is because the fix we shared in June: https://lore.kernel.org/20260626152636.1e48330f@kernel.org or Maciej's version: https://lore.kernel.org/20261007200311.730443-1-maciej.fijalkowski@intel.com is still not upstream!? Recent discussions suggest that Intel maintainers may be willing to ack patches on netdev directly. Let's put that to tests. Note that I think this is a major bug likely to bother real users so I'm targetting net. Przemek's series will have to wait for net->net-next merge. Jakub Kicinski (2): ice: don't unintentionally switch to symmetric RSS hash iavf: don't unintentionally switch to symmetric RSS hash drivers/net/ethernet/intel/iavf/iavf_ethtool.c | 3 ++- drivers/net/ethernet/intel/ice/ice_ethtool.c | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) -- 2.56.1
[PATCH net 2/2] iavf: don't unintentionally switch to symmetric RSS hash
Author: Jakub Kicinski
Date: Mon, 23 Nov 2026 20:56
Date: Mon, 23 Nov 2026 20:56
35 lines
9114 bytes
9114 bytes
RXH_XFRM_NO_CHANGE is 0xff, iavf looks at this field to check if
RXH_XFRM_SYM_XOR bit is set, without first checking for the
special NO_CHANGE value.
This causes any ethtool -X invocation without explicitly
specifying input_xfrm to try to enable symmetric-hashing.
On VFs without input_xfrm support, NO_CHANGE would have
returned -EOPNOTSUPP.
NIPA HW tests would catch this but there's no runner testing iavf.
iavf was pointed out by an LLM, fix was compile-tested only.
Fixes: 0dd415d15505 ("net: ethtool: add a NO_CHANGE uAPI for new RXFH's input_xfrm")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
drivers/net/ethernet/intel/iavf/iavf_ethtool.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/iavf/iavf_ethtool.c b/drivers/net/ethernet/intel/iavf/iavf_ethtool.c
index e7cf12eaa268..d81b2d6a68ac 100644
--- a/drivers/net/ethernet/intel/iavf/iavf_ethtool.c
+++ b/drivers/net/ethernet/intel/iavf/iavf_ethtool.c
@@ -1824,7 +1824,8 @@ static int iavf_set_rxfh(struct net_device *netdev,
rxfh->hfunc != ETH_RSS_HASH_TOP)
return -EOPNOTSUPP;
- if ((rxfh->input_xfrm & RXH_XFRM_SYM_XOR) &&
+ if (rxfh->input_xfrm != RXH_XFRM_NO_CHANGE &&
+ (rxfh->input_xfrm & RXH_XFRM_SYM_XOR) &&
adapter->hfunc != VIRTCHNL_RSS_ALG_TOEPLITZ_SYMMETRIC) {
if (!ADV_RSS_SUPPORT(adapter))
return -EOPNOTSUPP;
--
2.56.1
Re: [PATCH net 2/2] iavf: don't unintentionally switch to symmetric RSS hash
Author: Maciej Fijalkowski
Date: Mon, 23 Nov 2026 21:10
Date: Mon, 23 Nov 2026 21:10
41 lines
21466 bytes
21466 bytes
On Mon, Nov 23, 2026 at 12:56:00PM -0800, Jakub Kicinski wrote:
> RXH_XFRM_NO_CHANGE is 0xff, iavf looks at this field to check if
> RXH_XFRM_SYM_XOR bit is set, without first checking for the
> special NO_CHANGE value.
>
> This causes any ethtool -X invocation without explicitly
> specifying input_xfrm to try to enable symmetric-hashing.
> On VFs without input_xfrm support, NO_CHANGE would have
> returned -EOPNOTSUPP.
>
> NIPA HW tests would catch this but there's no runner testing iavf.
> iavf was pointed out by an LLM, fix was compile-tested only.
>
> Fixes: 0dd415d15505 ("net: ethtool: add a NO_CHANGE uAPI for new RXFH's input_xfrm")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
> ---
> drivers/net/ethernet/intel/iavf/iavf_ethtool.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/intel/iavf/iavf_ethtool.c b/drivers/net/ethernet/intel/iavf/iavf_ethtool.c
> index e7cf12eaa268..d81b2d6a68ac 100644
> --- a/drivers/net/ethernet/intel/iavf/iavf_ethtool.c
> +++ b/drivers/net/ethernet/intel/iavf/iavf_ethtool.c
> @@ -1824,7 +1824,8 @@ static int iavf_set_rxfh(struct net_device *netdev,
> rxfh->hfunc != ETH_RSS_HASH_TOP)
> return -EOPNOTSUPP;
>
> - if ((rxfh->input_xfrm & RXH_XFRM_SYM_XOR) &&
> + if (rxfh->input_xfrm != RXH_XFRM_NO_CHANGE &&
> + (rxfh->input_xfrm & RXH_XFRM_SYM_XOR) &&
> adapter->hfunc != VIRTCHNL_RSS_ALG_TOEPLITZ_SYMMETRIC) {
> if (!ADV_RSS_SUPPORT(adapter))
> return -EOPNOTSUPP;
> --
> 2.56.1
>
>
Re: [PATCH net 0/2] eth: intel: fix unintentional symmetric RSS
Author: Tony Nguyen
Date: Mon, 23 Nov 2026 22:46
Date: Mon, 23 Nov 2026 22:46
42 lines
22093 bytes
22093 bytes
On 11/23/2026 12:55 PM, Jakub Kicinski wrote: > Fix Intel drivers not handling RXH_XFRM_NO_CHANGE. > > I had an urge to "fix this in the core" and hide RXH_XFRM_NO_CHANGE > from the drivers, by fetching the current config instead. > But "NO_CHANGE" values are already part of the driver facing API > (hfunc has ETH_RSS_HASH_NO_CHANGE). Besides we can't _completely_ > hide RXH_XFRM_NO_CHANGE from the drivers, since we want the drivers > to be able to populate the defaults for new RSS contexts. > We need a "user didn't say" value there. > > --- > > Matt pointed out that the upcoming RSS sizing series breaks > NIPA tests, this is because the fix we shared in June: > https://lore.kernel.org/20260626152636.1e48330f@kernel.org > or Maciej's version: > https://lore.kernel.org/20261007200311.730443-1-maciej.fijalkowski@intel.com > is still not upstream!? > > Recent discussions suggest that Intel maintainers may be willing > to ack patches on netdev directly. Let's put that to tests. > > Note that I think this is a major bug likely to bother real > users so I'm targetting net. Przemek's series will have to > wait for net->net-next merge. For the series: Acked-by: Tony Nguyen <anthony.l.nguyen@intel.com> > Jakub Kicinski (2): > ice: don't unintentionally switch to symmetric RSS hash > iavf: don't unintentionally switch to symmetric RSS hash > > drivers/net/ethernet/intel/iavf/iavf_ethtool.c | 3 ++- > drivers/net/ethernet/intel/ice/ice_ethtool.c | 9 ++++++--- > 2 files changed, 8 insertions(+), 4 deletions(-) >
Re: [PATCH net 0/2] eth: intel: fix unintentional symmetric RSS
Author: Przemek Kitszel
Date: Tue, 24 Nov 2026 13:43
Date: Tue, 24 Nov 2026 13:43
52 lines
22279 bytes
22279 bytes
On 11/23/26 11:46 PM, Tony Nguyen wrote: > > > On 11/23/2026 12:55 PM, Jakub Kicinski wrote: >> Fix Intel drivers not handling RXH_XFRM_NO_CHANGE. >> >> I had an urge to "fix this in the core" and hide RXH_XFRM_NO_CHANGE >> from the drivers, by fetching the current config instead. >> But "NO_CHANGE" values are already part of the driver facing API >> (hfunc has ETH_RSS_HASH_NO_CHANGE). Besides we can't _completely_ >> hide RXH_XFRM_NO_CHANGE from the drivers, since we want the drivers >> to be able to populate the defaults for new RSS contexts. >> We need a "user didn't say" value there. >> >> --- >> >> Matt pointed out that the upcoming RSS sizing series breaks >> NIPA tests, this is because the fix we shared in June: >> https://lore.kernel.org/20260626152636.1e48330f@kernel.org >> or Maciej's version: >> https://lore.kernel.org/20261007200311.730443-1- >> maciej.fijalkowski@intel.com >> is still not upstream!? >> >> Recent discussions suggest that Intel maintainers may be willing >> to ack patches on netdev directly. Let's put that to tests. >> >> Note that I think this is a major bug likely to bother real >> users so I'm targetting net. Przemek's series will have to >> wait for net->net-next merge. will do > > For the series: > > Acked-by: Tony Nguyen <anthony.l.nguyen@intel.com> works for me too > >> Jakub Kicinski (2): >> ice: don't unintentionally switch to symmetric RSS hash >> iavf: don't unintentionally switch to symmetric RSS hash >> >> drivers/net/ethernet/intel/iavf/iavf_ethtool.c | 3 ++- >> drivers/net/ethernet/intel/ice/ice_ethtool.c | 9 ++++++--- >> 2 files changed, 8 insertions(+), 4 deletions(-) >> >
Re: [PATCH net 0/2] eth: intel: fix unintentional symmetric RSS
Author: patchwork-bot+netdevbpf
Date: Mon, 30 Nov 2026 03:50
Date: Mon, 30 Nov 2026 03:50
29 lines
8985 bytes
8985 bytes
Hello:
This series was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:
On Mon, 23 Nov 2026 12:55:58 -0800 you wrote:
> Fix Intel drivers not handling RXH_XFRM_NO_CHANGE.
>
> I had an urge to "fix this in the core" and hide RXH_XFRM_NO_CHANGE
> from the drivers, by fetching the current config instead.
> But "NO_CHANGE" values are already part of the driver facing API
> (hfunc has ETH_RSS_HASH_NO_CHANGE). Besides we can't _completely_
> hide RXH_XFRM_NO_CHANGE from the drivers, since we want the drivers
> to be able to populate the defaults for new RSS contexts.
> We need a "user didn't say" value there.
>
> [...]
Here is the summary with links:
- [net,1/2] ice: don't unintentionally switch to symmetric RSS hash
https://git.kernel.org/netdev/net/c/c559bc39238a
- [net,2/2] iavf: don't unintentionally switch to symmetric RSS hash
https://git.kernel.org/netdev/net/c/16ba42d2265d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads