bpf: Remove bpf_cgroup_kptr_get() kfunc
authorDavid Vernet <void@manifault.com>
Tue, 11 Apr 2023 04:16:32 +0000 (23:16 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 12 Apr 2023 19:57:54 +0000 (12:57 -0700)
commit6499fe6edc4fd5b91aed4d5cd84bd113e1c58d5f
tree1327f57887ce50b06f1f399f26095c5aa618e487
parent1d71283987c729dceccce834a864c27301ba155e
bpf: Remove bpf_cgroup_kptr_get() kfunc

Now that bpf_cgroup_acquire() is KF_RCU | KF_RET_NULL,
bpf_cgroup_kptr_get() is redundant. Let's remove it, and update
selftests to instead use bpf_cgroup_acquire() where appropriate. The
next patch will update the BPF documentation to not mention
bpf_cgroup_kptr_get().

Signed-off-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/r/20230411041633.179404-2-void@manifault.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/helpers.c
tools/testing/selftests/bpf/progs/cgrp_kfunc_common.h
tools/testing/selftests/bpf/progs/cgrp_kfunc_failure.c
tools/testing/selftests/bpf/progs/cgrp_kfunc_success.c