bpf: add extra information for external symbol definitions
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Fri, 8 Jun 2018 08:42:33 +0000 (09:42 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Jul 2018 07:37:16 +0000 (09:37 +0200)
commit60702e8c7cbbadd4d5e6ffe4d7f470db339b0a04
tree9e49baaa428454d95a6753be305264f4ba7a515b
parentc1eaab510dba7ce73087192ae6cb5b5daf0eed14
bpf: add extra information for external symbol definitions

Extend struct rte_bpf_xsym with new fields to provide information about:
 - for variables - type and size
 - for functions - number of arguments and type/size of each argument
   and return value

Such information would allow validate code to perform
more extensive checking on input BPF program and catch
misbehaving BPF code.

That change would cause ABI/API breakage for librte_bpf.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test-pmd/bpf_cmd.c
lib/librte_bpf/bpf_def.h
lib/librte_bpf/bpf_exec.c
lib/librte_bpf/bpf_impl.h
lib/librte_bpf/bpf_jit_x86.c
lib/librte_bpf/bpf_load.c
lib/librte_bpf/bpf_load_elf.c
lib/librte_bpf/rte_bpf.h
test/test/test_bpf.c