selftests/bpf: Add a basic fifo qdisc test
authorAmery Hung <amery.hung@bytedance.com>
Wed, 9 Apr 2025 21:46:04 +0000 (14:46 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 17 Apr 2025 17:54:41 +0000 (10:54 -0700)
commit11c701639ba95aac909720678bf073eeaf6ef89c
tree7fac699e4780a89a46d2d9c3cd53b230618b3bd3
parent4b15121da7e5217636ae2edccb12cf7fc49709b3
selftests/bpf: Add a basic fifo qdisc test

This selftest includes a bare minimum fifo qdisc, which simply enqueues
sk_buffs into the back of a bpf list and dequeues from the front of the
list.

Signed-off-by: Amery Hung <amery.hung@bytedance.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://patch.msgid.link/20250409214606.2000194-9-ameryhung@gmail.com
tools/testing/selftests/bpf/config
tools/testing/selftests/bpf/prog_tests/bpf_qdisc.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/bpf_qdisc_common.h [new file with mode: 0644]
tools/testing/selftests/bpf/progs/bpf_qdisc_fifo.c [new file with mode: 0644]