]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: drv-net: fix RPS mask handling in toeplitz test
authorGal Pressman <gal@nvidia.com>
Mon, 12 Jan 2026 17:37:14 +0000 (19:37 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 14 Jan 2026 03:13:08 +0000 (19:13 -0800)
commit9d48c62f6b4ed70ebeea70f52ddb1c6d8613bed4
tree888187ca812be4471eade6ce0ce19a05d508757c
parentddf96c393a33aef4887e2e406c76c2f8cda1419c
selftests: drv-net: fix RPS mask handling in toeplitz test

The toeplitz.py test passed the hex mask without "0x" prefix (e.g.,
"300" for CPUs 8,9). The toeplitz.c strtoul() call wrongly parsed this
as decimal 300 (0x12c) instead of hex 0x300.

Pass the prefixed mask to toeplitz.c, and the unprefixed one to sysfs.

Fixes: 9cf9aa77a1f6 ("selftests: drv-net: hw: convert the Toeplitz test to Python")
Reviewed-by: Nimrod Oren <noren@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260112173715.384843-2-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/toeplitz.py