Re: [PATCH bpf-next 08/18] bpf: add support for KF_ARG_PTR_TO_WORKQUEUE

2024-04-19 Thread Alexei Starovoitov
On Tue, Apr 16, 2024 at 04:08:21PM +0200, Benjamin Tissoires wrote: > Introduce support for KF_ARG_PTR_TO_WORKQUEUE. The kfuncs will use bpf_wq > as argument and that will be recognized as workqueue argument by verifier. > bpf_wq_kern casting can happen inside kfunc, but using bpf_wq in > argument

[PATCH bpf-next 08/18] bpf: add support for KF_ARG_PTR_TO_WORKQUEUE

2024-04-16 Thread Benjamin Tissoires
Introduce support for KF_ARG_PTR_TO_WORKQUEUE. The kfuncs will use bpf_wq as argument and that will be recognized as workqueue argument by verifier. bpf_wq_kern casting can happen inside kfunc, but using bpf_wq in argument makes life easier for users who work with non-kern type in BPF progs.