numam-dpdk/lib/bpf
David Marchand 63f39a430a bpf: fix build with some libpcap version on FreeBSD
This is something caught in UNH FreeBSD env.

For some reason [1], the pcap/bpf.h header started to define _BPF_H_.

It happens that the bpf_impl.h internal DPDK header uses this define as
an internal guard.
This triggers a build failure in bpf_convert.c which can't find
RTE_BPF_LOG macro.

Fix the include guard to use the filename and remove _.

1: https://github.com/the-tcpdump-group/libpcap/pull/1074

Fixes: 94972f35a0 ("bpf: add BPF loading and execution framework")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2022-03-14 11:41:52 +01:00
..
bpf_convert.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
bpf_def.h bpf: add missing C++ guards 2022-02-22 14:47:49 +01:00
bpf_dump.c bpf: add function to dump eBPF instructions 2021-10-22 22:07:48 +02:00
bpf_exec.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
bpf_impl.h bpf: fix build with some libpcap version on FreeBSD 2022-03-14 11:41:52 +01:00
bpf_jit_arm64.c
bpf_jit_x86.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
bpf_load_elf.c fix spelling in comments and doxygen 2021-11-16 17:57:09 +01:00
bpf_load.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
bpf_pkt.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
bpf_stub.c build: cleanup libpcap dependent components 2021-11-10 11:42:34 +01:00
bpf_validate.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
bpf.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
meson.build build: cleanup libpcap dependent components 2021-11-10 11:42:34 +01:00
rte_bpf_ethdev.h
rte_bpf.h bpf: fix convert API when libpcap missing 2021-11-04 19:56:20 +01:00
version.map bpf: add function to dump eBPF instructions 2021-10-22 22:07:48 +02:00