KFunc bpf_qdisc_watchdog_schedule
Schedule a qdisc to a later time using a timer.
Definition
Parameters
sch
: The qdisc to be scheduled.
expire
: The expiry time of the timer.
delta_ns
: The slack range of the timer.
Signature
void bpf_qdisc_watchdog_schedule(struct Qdisc *sch, u64 expire, u64 delta_ns)
Usage
This kfunc is used to signal to a netdev when the first packet in the queue is ready to be sent. This allows the kernel to more efficiently handle qdisc implementations that shape / throttle traffic by delaying when they are sent. Calling this function will hint to the kernel when it should poll for the next packet.
Program types
The following program types can make use of this kfunc:
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome