]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bpf: pass program type in struct bpf_cfg_in
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 24 Nov 2017 02:11:58 +0000 (18:11 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 26 Nov 2017 19:57:57 +0000 (11:57 -0800)
commit658cfebc27f20dd006659b5e90d1585b300eba85
treee1d29a4979b6f10c5728d7949aec6d39bc167ee2
parent6054c1ebf7727123654f2c0764f3693813e9bad6
bpf: pass program type in struct bpf_cfg_in

Program type is needed both for parsing and loading of
the program.  Parsing may also induce the type based on
signatures from __bpf_prog_meta.  Instead of passing
the type around keep it in struct bpf_cfg_in.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
include/bpf_util.h
ip/iplink_xdp.c
ip/iproute_lwtunnel.c
lib/bpf.c
tc/f_bpf.c
tc/m_bpf.c