diff options
author | 2025-04-09 14:46:00 -0700 | |
---|---|---|
committer | 2025-04-17 10:54:40 -0700 | |
commit | 7a2dafda950b78611dc441c83d105dfdc7082681 (patch) | |
tree | d55fed4ef1b8845e1868f895e6a5f80cfdbd58ef /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: net_sched: Add basic bpf qdisc kfuncs (diff) | |
download | wireguard-linux-7a2dafda950b78611dc441c83d105dfdc7082681.tar.xz wireguard-linux-7a2dafda950b78611dc441c83d105dfdc7082681.zip |
bpf: net_sched: Add a qdisc watchdog timer
Add a watchdog timer to bpf qdisc. The watchdog can be used to schedule
the execution of qdisc through kfunc, bpf_qdisc_schedule(). It can be
useful for building traffic shaping scheduling algorithm, where the time
the next packet will be dequeued is known.
The implementation relies on struct_ops gen_prologue/epilogue to patch bpf
programs provided by users. Operator specific prologue/epilogue kfuncs
are introduced instead of watchdog kfuncs so that it is easier to extend
prologue/epilogue in the future (writing C vs BPF bytecode).
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-5-ameryhung@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions