]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libbpf: Support creating and destroying qdisc
authorAmery Hung <amery.hung@bytedance.com>
Wed, 9 Apr 2025 21:46:03 +0000 (14:46 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 17 Apr 2025 17:54:41 +0000 (10:54 -0700)
commit4b15121da7e5217636ae2edccb12cf7fc49709b3
tree71d80e2627ee095e48033d6f209451066440aa30
parente582778f023b4c9e608b5cca135f17f62b0cd115
libbpf: Support creating and destroying qdisc

Extend struct bpf_tc_hook with handle, qdisc name and a new attach type,
BPF_TC_QDISC, to allow users to add or remove any qdisc specified in
addition to clsact.

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-8-ameryhung@gmail.com
tools/lib/bpf/libbpf.h
tools/lib/bpf/netlink.c