]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: drv-net: xdp: make sure we're actually testing native XDP
authorJakub Kicinski <kuba@kernel.org>
Fri, 22 Aug 2025 19:56:45 +0000 (12:56 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 25 Aug 2025 17:55:55 +0000 (10:55 -0700)
commit992e9f53a0db0bec0b24778e822807ee609fbd3f
tree9ca0a406f67fcda716ba6df61a27ec1e67b14297
parent444b02ce3f5cd4ba4cc06f3f0166a1b1ed73aadf
selftests: drv-net: xdp: make sure we're actually testing native XDP

Kernel tries to be helpful and attach the XDP program in generic
mode if the driver has no BPF ndo at all. Since the xdp.py tests
all have "native" in their names this can be quite confusing.
Force native / "drv" attachment. Note that netdevsim re-uses
the generic handler as its "native" handler, so we'll maintain
the test coverage of the generic mode that way. No need to test
both explicitly, I reckon.

Link: https://patch.msgid.link/20250822195645.1673390-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/xdp.py