]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: drv-net: rss_ctx: Add test for ntuple rules targeting default RSS context
authorGal Pressman <gal@nvidia.com>
Thu, 12 Jun 2025 07:19:58 +0000 (10:19 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Jun 2025 15:15:35 +0000 (08:15 -0700)
commit56c5d291e88538621029e5c7c5f60540d37846a8
tree6db2c9fd8a5cbf848df1236a8e318e58edeeabdc
parentd78ebc772c7ceccf6e655ddb93099f49a1268af4
selftests: drv-net: rss_ctx: Add test for ntuple rules targeting default RSS context

Add test_rss_default_context_rule() to verify that ntuple rules can
correctly direct traffic to the default RSS context (context 0).

The test creates two ntuple rules with explicit location priorities:
- A high-priority rule (loc 0) directing specific port traffic to
  context 0.
- A low-priority rule (loc 1) directing all other TCP traffic to context
  1.

This validates that:
1. Rules targeting the default context function properly.
2. Traffic steering works as expected when mixing default and
   additional RSS contexts.

The test was written by AI, and reviewed by humans.

Reviewed-by: Nimrod Oren <noren@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Link: https://patch.msgid.link/20250612071958.1696361-3-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/rss_ctx.py