Merge branch 'fix-ntuple-rules-targeting-default-rss'
authorJakub Kicinski <kuba@kernel.org>
Thu, 12 Jun 2025 15:15:37 +0000 (08:15 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Jun 2025 15:15:38 +0000 (08:15 -0700)
commit613fd52ea75d70275fa67de0af5af2b5d65bed16
tree6db2c9fd8a5cbf848df1236a8e318e58edeeabdc
parentd5441acae780c346c04213a62d3eb189216daab1
parent56c5d291e88538621029e5c7c5f60540d37846a8
Merge branch 'fix-ntuple-rules-targeting-default-rss'

Gal Pressman says:

====================
Fix ntuple rules targeting default RSS

This series addresses a regression in ethtool flow steering where rules
targeting the default RSS context (context 0) were incorrectly rejected.

The default RSS context always exists but is not stored in the rss_ctx
xarray like additional contexts. The current validation logic was
checking for the existence of context 0 in this array, causing valid
flow steering rules to be rejected.

This prevented configurations such as:
- High priority rules directing specific traffic to the default context
- Low priority catch-all rules directing remaining traffic to additional
  contexts

Patch 1 fixes the validation logic to skip the existence check for
context 0.

Patch 2 adds a selftest that verifies this behavior.

v3: https://lore.kernel.org/20250609120250.1630125-1-gal@nvidia.com
v2: https://lore.kernel.org/20250225071348.509432-1-gal@nvidia.com
====================

Link: https://patch.msgid.link/20250612071958.1696361-1-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>