]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: drv-net: rss: validate min RSS table size
authorJakub Kicinski <kuba@kernel.org>
Sat, 31 Jan 2026 22:54:53 +0000 (14:54 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Feb 2026 01:06:00 +0000 (17:06 -0800)
commit9e3d4dae98325928f842192359521ca0a2e5408e
tree3e0d965a257cacf5279c1c7fd8c2273c36b33528
parentfd102acfd362de60a941d24f0836278d839b9391
selftests: drv-net: rss: validate min RSS table size

Add a test which checks that the RSS table is at least 4x the max
queue count supported by the device. The original RSS spec from
Microsoft stated that the RSS indirection table should be 2 to 8
times the CPU count, presumably assuming queue per CPU. If the
CPU count is not a power of two, however, a power-of-2 table
2x larger than queue count results in a 33% traffic imbalance.
Validate that the indirection table is at least 4x the queue
count. This lowers the imbalance to 16% which empirically
appears to be more acceptable to memcache-like workloads.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260131225454.1225151-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/Makefile
tools/testing/selftests/drivers/net/hw/rss_drv.py [new file with mode: 0755]