History

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.

Andrii Nakryiko committed 5 years ago

Commit b7906b71 parent a06caa44 files · +8 −8Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/bpf.h+2−2
@@ -3897,8 +3897,8 @@ union bpf_attr { · 3896 unmodified lines
38973897 FN(seq_printf_btf), \
38983898 FN(skb_cgroup_classid), \
38993899 FN(redirect_neigh), \
3900− FN(bpf_per_cpu_ptr), \
3901− FN(bpf_this_cpu_ptr), \
3900+ FN(per_cpu_ptr), \
3901+ FN(this_cpu_ptr), \
39023902 FN(redirect_peer), \
39033903 /* */
39043904