2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-06 12:44:14 +08:00
linux-next/tools/lib/bpf
Eric Leblond bbf48c18ee libbpf: add error reporting in XDP
Parse netlink ext attribute to get the error message returned by
the card. Code is partially take from libnl.

We add netlink.h to the uapi include of tools. And we need to
avoid include of userspace netlink header to have a successful
build of sample so nlattr.h has a define to avoid
the inclusion. Using a direct define could have been an issue
as NLMSGERR_ATTR_MAX can change in the future.

We also define SOL_NETLINK if not defined to avoid to have to
copy socket.h for a fixed value.

Signed-off-by: Eric Leblond <eric@regit.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-02-02 17:53:48 -08:00
..
.gitignore tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf 2015-11-05 12:47:51 -03:00
bpf.c libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00
bpf.h libbpf: add support for bpf_call 2017-12-17 20:34:35 +01:00
Build libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00
libbpf.c libbpf: add function to setup XDP 2018-02-02 17:53:48 -08:00
libbpf.h libbpf: add function to setup XDP 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