]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf: net_sched: Support updating bstats
authorAmery Hung <amery.hung@bytedance.com>
Wed, 9 Apr 2025 21:46:01 +0000 (14:46 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 17 Apr 2025 17:54:40 +0000 (10:54 -0700)
commit544e0a1f1e56de5a28251c188aa8f78fe50b31c9
tree8dbfbc107307712f8b846291ac603c2291cb8d85
parent7a2dafda950b78611dc441c83d105dfdc7082681
bpf: net_sched: Support updating bstats

Add a kfunc to update Qdisc bstats when an skb is dequeued. The kfunc is
only available in .dequeue programs.

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-6-ameryhung@gmail.com
net/sched/bpf_qdisc.c