]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: rename struct bpf_map_def to avoid conflict with libbpf
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 10 May 2018 17:24:38 +0000 (10:24 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 10 May 2018 23:40:51 +0000 (01:40 +0200)
commita46260e8e510e5924a342c472c06c5e9cc5ad574
tree140bd26efcb352da5b22ad1858475cae0cd83a76
parentf9c53b1ac5e47a646bd81090d4ecec903a4de53b
samples: bpf: rename struct bpf_map_def to avoid conflict with libbpf

Both tools/lib/bpf/libbpf.h and samples/bpf/bpf_load.h define their
own version of struct bpf_map_def.  The version in bpf_load.h has
more fields.  libbpf does not support inner maps and its definition
of struct bpf_map_def lacks the related fields.  Rename the definition
in bpf_load.h (samples/bpf) to avoid conflicts.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/bpf_load.c
samples/bpf/bpf_load.h