Re: [PATCH] bpf: fix build with some libpcap version on FreeBSD

2022-03-14 Thread Thomas Monjalon
10/03/2022 19:54, Stephen Hemminger: > On Thu, 10 Mar 2022 19:30:40 +0100 > David Marchand wrote: > > > 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 thi

Re: [PATCH] bpf: fix build with some libpcap version on FreeBSD

2022-03-10 Thread Stephen Hemminger
On Thu, 10 Mar 2022 19:30:40 +0100 David Marchand wrote: > 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 bu

[PATCH] bpf: fix build with some libpcap version on FreeBSD

2022-03-10 Thread David Marchand
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