Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: fix build with some libpcap version on FreeBSD
[ upstream commit 63f39a4 ] 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: the-tcpdump-group/libpcap#1074 Fixes: 94972f3 ("bpf: add BPF loading and execution framework") Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
- Loading branch information