]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: hw-net: toeplitz: read indirection table from the device
authorJakub Kicinski <kuba@kernel.org>
Fri, 21 Nov 2025 04:02:58 +0000 (20:02 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Nov 2025 02:51:41 +0000 (18:51 -0800)
commitc0105ffc5056852b16824bea9e8e0cd9a598d715
tree548586e63f65fbf202fe1f80db50121235d4b41f
parentaa91dbf3eda2977e3046d4838eadf7af4dbd47ec
selftests: hw-net: toeplitz: read indirection table from the device

Replace the simple modulo math with the real indirection table
read from the device. This makes the tests pass for mlx5 and
bnxt NICs.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20251121040259.3647749-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/toeplitz.c