Merge branch 'bpf-enable-some-functions-in-cgroup-programs'
authorAndrii Nakryiko <andrii@kernel.org>
Mon, 19 Aug 2024 22:25:31 +0000 (15:25 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 19 Aug 2024 22:25:31 +0000 (15:25 -0700)
commit955bba7e0a0ec7c13d3e9aa73c61f0d31e43fda8
treeabe610173816454c071e451321a05992b585b89f
parentfdf1c728fac541891ef1aa773bfd42728626769c
parent7f6287417baf57754f47687c6ea1a749a0686ab0
Merge branch 'bpf-enable-some-functions-in-cgroup-programs'

Matteo Croce says:

====================
bpf: enable some functions in cgroup programs

From: Matteo Croce <teknoraver@meta.com>

Enable some BPF kfuncs and the helper bpf_current_task_under_cgroup()
for program types BPF_CGROUP_*.
These will be used by systemd-networkd:
https://github.com/systemd/systemd/pull/32212

v5->v6:
Called register_btf_kfunc_id_set() only once
Fixed build error with !CONFIG_CGROUPS

v4->v5:
Same code, but v4 had an old cover letter

v3->v4:
Reset all the acked-by tags because the code changed a bit.

Signed-off-by: Matteo Croce <teknoraver@meta.com>
====================

Link: https://lore.kernel.org/r/20240819162805.78235-1-technoboy85@gmail.com
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>