]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: drv-net: rss: Generate unique ports for RSS context tests
authorDimitri Daskalakis <dimitri.daskalakis1@gmail.com>
Tue, 24 Feb 2026 22:46:59 +0000 (14:46 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Feb 2026 03:42:02 +0000 (19:42 -0800)
commit19c3a2a81d2bca7ca2187ea3686c4bdfd147115b
tree91fe587ca8e6df0e9d4deb6876d5ba31058a5bf5
parentb0249c0d41b306ddd79de58ca7fea543ab5e7a2e
selftests: drv-net: rss: Generate unique ports for RSS context tests

The RSS ctx tests rely on NFC rules with unique ports to steer packets
to the correct ctx. This updates the test to use the new rand_ports()
helper to guarantee the ports are unique.

Manual testing shows that generating 32 ports with the existing method
would result in at least one duplicate 4% of the time.

Signed-off-by: Dimitri Daskalakis <dimitri.daskalakis1@gmail.com>
Link: https://patch.msgid.link/20260224224659.1507082-3-dimitri.daskalakis1@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/rss_ctx.py