bpf: Move GRAPH_{ROOT,NODE}_MASK macros into btf_field_type enum
authorDave Marchevsky <davemarchevsky@fb.com>
Tue, 7 Nov 2023 08:56:37 +0000 (00:56 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Nov 2023 03:07:51 +0000 (19:07 -0800)
commit790ce3cfefb1b768dccd4eee324ddef0f0ce3db4
treea5fbb1da79ee98320e2d7622179b7fcd70ed05b0
parent649924b76ab151a96bdd22a97a993fb0421f134c
bpf: Move GRAPH_{ROOT,NODE}_MASK macros into btf_field_type enum

This refactoring patch removes the unused BPF_GRAPH_NODE_OR_ROOT
btf_field_type and moves BPF_GRAPH_{NODE,ROOT} macros into the
btf_field_type enum. Further patches in the series will use
BPF_GRAPH_NODE, so let's move this useful definition out of btf.c.

Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Link: https://lore.kernel.org/r/20231107085639.3016113-5-davemarchevsky@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
kernel/bpf/btf.c