]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: drv-net: Test that NAPI ID is non-zero
authorJoe Damato <jdamato@fastly.com>
Thu, 24 Apr 2025 00:27:33 +0000 (00:27 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Apr 2025 01:30:36 +0000 (18:30 -0700)
commit2593a0a1446ae4bf651b0af1c42a421f511b4839
tree5ff881ff1bb84160c19657515e70ff0423545e36
parent2b6d490b82668bbd0a9201c27154890f842e985f
selftests: drv-net: Test that NAPI ID is non-zero

Test that the SO_INCOMING_NAPI_ID of a network file descriptor is
non-zero. This ensures that either the core networking stack or, in some
cases like netdevsim, the driver correctly sets the NAPI ID.

Signed-off-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250424002746.16891-4-jdamato@fastly.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/.gitignore
tools/testing/selftests/drivers/net/Makefile
tools/testing/selftests/drivers/net/napi_id.py [new file with mode: 0755]
tools/testing/selftests/drivers/net/napi_id_helper.c [new file with mode: 0644]