]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Cleanup bpf qdisc selftests
authorAmery Hung <ameryhung@gmail.com>
Fri, 2 May 2025 20:16:24 +0000 (13:16 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Fri, 2 May 2025 22:51:17 +0000 (15:51 -0700)
commit2f9838e257901dae120927362060b40eac435a23
treed528fadf78e79620796331c1cce6ea0f6b6d9c2f
parent6cda0e2c4760695123dad2af3328e1cfb4f3f540
selftests/bpf: Cleanup bpf qdisc selftests

Some cleanups:
- Remove unnecessary kfuncs declaration
- Use _ns in the test name to run tests in a separate net namespace
- Call skeleton __attach() instead of bpf_map__attach_struct_ops() to
  simplify tests.

Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_qdisc.c
tools/testing/selftests/bpf/progs/bpf_qdisc_common.h