diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2020-12-11 22:36:25 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-12-11 14:19:07 -0800 |
commit | b7906b70a2337e445b8dca3ce7ba8976b6ebd07d (patch) | |
tree | 1a83ccd888764451ba9c81cee95db8b3bc4f8f1f /include/uapi | |
parent | a06caa4a68ce7d134b342966e65e7bd2dfa2eead (diff) | |
download | linux-stable-b7906b70a2337e445b8dca3ce7ba8976b6ebd07d.tar.gz linux-stable-b7906b70a2337e445b8dca3ce7ba8976b6ebd07d.tar.bz2 linux-stable-b7906b70a2337e445b8dca3ce7ba8976b6ebd07d.zip |
bpf: Fix enum names for bpf_this_cpu_ptr() and bpf_per_cpu_ptr() helpers
Remove bpf_ prefix, which causes these helpers to be reported in verifier
dump as bpf_bpf_this_cpu_ptr() and bpf_bpf_per_cpu_ptr(), respectively. Lets
fix it as long as it is still possible before UAPI freezes on these helpers.
Fixes: eaa6bcb71ef6 ("bpf: Introduce bpf_per_cpu_ptr()")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/bpf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index e6ceac3f7d62..556216dc9703 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -3897,8 +3897,8 @@ union bpf_attr { FN(seq_printf_btf), \ FN(skb_cgroup_classid), \ FN(redirect_neigh), \ - FN(bpf_per_cpu_ptr), \ - FN(bpf_this_cpu_ptr), \ + FN(per_cpu_ptr), \ + FN(this_cpu_ptr), \ FN(redirect_peer), \ /* */ |