Re: [PATCH bpf-next v4 3/6] bpf/helpers: introduce bpf_timer_set_sleepable_cb() kfunc

2024-03-21 Thread Benjamin Tissoires
On Mon, Mar 18, 2024 at 11:52 PM Eduard Zingerman wrote: > > On Fri, 2024-03-15 at 15:29 +0100, Benjamin Tissoires wrote: > > This patch looks good to me, please see two nitpicks below. > Acked-by: Eduard Zingerman Thanks! > > [...] > > > @@ -1350,6 +1358,11 @@ BPF_CALL_3(bpf_timer_start,

Re: [PATCH bpf-next v4 3/6] bpf/helpers: introduce bpf_timer_set_sleepable_cb() kfunc

2024-03-18 Thread Eduard Zingerman
On Fri, 2024-03-15 at 15:29 +0100, Benjamin Tissoires wrote: This patch looks good to me, please see two nitpicks below. Acked-by: Eduard Zingerman [...] > @@ -1350,6 +1358,11 @@ BPF_CALL_3(bpf_timer_start, struct bpf_timer_kern *, > timer, u64, nsecs, u64, fla > goto out; >

[PATCH bpf-next v4 3/6] bpf/helpers: introduce bpf_timer_set_sleepable_cb() kfunc

2024-03-15 Thread Benjamin Tissoires
In this patch, bpf_timer_set_sleepable_cb() is functionally equivalent to bpf_timer_set_callback(), to the exception that it enforces the timer to be started with BPF_F_TIMER_SLEEPABLE. But given that bpf_timer_set_callback() is a helper when bpf_timer_set_sleepable_cb() is a kfunc, we need to