linux_dsm_epyc7002/tools/lib/bpf
Quentin Monnet 0badd33149 libbpf: complete list of strings for guessing program type
It seems that the type guessing feature for libbpf, based on the name of
the ELF section the program is located in, was inspired from
samples/bpf/prog_load.c, which was not used by any sample for loading
programs of certain types such as TC actions and classifiers, or
LWT-related types. As a consequence, libbpf is not able to guess the
type of such programs and to load them automatically if type is not
provided to the `bpf_load_prog()` function.

Add ELF section names associated to those eBPF program types so that
they can be loaded with e.g. bpftool as well.

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-02-08 11:59:50 +01:00
..
.gitignore tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf 2015-11-05 12:47:51 -03:00
bpf.c libbpf: add missing SPDX-License-Identifier 2018-02-02 17:53:48 -08:00
bpf.h libbpf: add missing SPDX-License-Identifier 2018-02-02 17:53:48 -08:00
Build libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00
libbpf.c libbpf: complete list of strings for guessing program type 2018-02-08 11:59:50 +01:00
libbpf.h libbpf: add missing SPDX-License-Identifier 2018-02-02 17:53:48 -08:00
Makefile tools: add netlink.h and if_link.h in tools uapi 2018-02-02 17:53:47 -08:00
nlattr.c libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00
nlattr.h libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00