]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Add a bpf fq qdisc to selftest
authorAmery Hung <amery.hung@bytedance.com>
Wed, 9 Apr 2025 21:46:05 +0000 (14:46 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 17 Apr 2025 17:54:41 +0000 (10:54 -0700)
commit2b59bd9e4efcfdbb2458bb68da67f7bb40951de9
treeeff35f90baaa9f3c3e2e207ab419b72ed42960f9
parent11c701639ba95aac909720678bf073eeaf6ef89c
selftests/bpf: Add a bpf fq qdisc to selftest

This test implements a more sophisticated qdisc using bpf. The bpf fair-
queueing (fq) qdisc gives each flow an equal chance to transmit data. It
also respects the timestamp of skb for rate limiting.

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-10-ameryhung@gmail.com
tools/testing/selftests/bpf/prog_tests/bpf_qdisc.c
tools/testing/selftests/bpf/progs/bpf_qdisc_fq.c [new file with mode: 0644]