]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cgroup: Add bpf prog revisions to struct cgroup_bpf
authorYonghong Song <yonghong.song@linux.dev>
Fri, 6 Jun 2025 16:31:36 +0000 (09:31 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 9 Jun 2025 23:17:11 +0000 (16:17 -0700)
commit9b8367b604c739947ec308874f087fe0eb80f412
tree7add11c6c469470387a3e6cf0f852bbba952e57d
parente41079f53e8792c99cc8888f545c31bc341ea9ac
cgroup: Add bpf prog revisions to struct cgroup_bpf

One of key items in mprog API is revision for prog list. The revision
number will be increased if the prog list changed, e.g., attach, detach
or replace.

Add 'revisions' field to struct cgroup_bpf, representing revisions for
all cgroup related attachment types. The initial revision value is
set to 1, the same as kernel mprog implementations.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250606163136.2428732-1-yonghong.song@linux.dev
include/linux/bpf-cgroup-defs.h
kernel/cgroup/cgroup.c