Subject: Re: [RFC PATCH bpf-next] bpf: Introduce bpf_timer

From: Toke Høiland-Jørgensen <[email-masked]>
Date: Sun, 23 May 2021 13:48:34 +0200

Still wrapping my head around this, but one thing immediately sprang to
mind:

> + * long bpf_timer_mod(struct bpf_timer *timer, u64 msecs)
> + *	Description
> + *		Set the timer expiration N msecs from the current time.
> + *	Return
> + *		zero

Could we make this use nanoseconds (and wire it up to hrtimers) instead?
I would like to eventually be able to use this for pacing out network
packets, and msec precision is way too coarse for that...

-Toke