+5
−11
include/linux/bpf_types.h
0 → 100644
+18
−0
+11
−16
+3
−27
+7
−68
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
There's no need to have struct bpf_prog_type_list since it just contains a list_head, the type, and the ops pointer. Since the types are densely packed and not actually dynamically registered, it's much easier and smaller to have an array of type->ops pointer. Also initialize this array statically to remove code needed to initialize it. In order to save duplicating the list, move it to a new header file and include it in the places needing it. Signed-off-by:Johannes Berg <johannes.berg@intel.com> Acked-by:
Daniel Borkmann <daniel@iogearbox.net> Acked-by:
Alexei Starovoitov <ast@kernel.org> Signed-off-by:
David S. Miller <davem@davemloft.net>