Re: [PATCH] lib/bpf: Rename 'bpf_validate' to avoid potential conflict with libpcap

2023-03-05 Thread Stephen Hemminger
On Sun, 5 Mar 2023 09:16:55 -0800 Stephen Hemminger wrote: > On Fri, 3 Mar 2023 21:56:54 +0800 > Martzki wrote: > > > The library libpcap has their function 'bpf_validate' either so > > there would be a multiple definition issue when linking with > > librte_bpf.a and libpcap.a staticly. > > >

Re: [PATCH] lib/bpf: Rename 'bpf_validate' to avoid potential conflict with libpcap

2023-03-05 Thread Stephen Hemminger
On Fri, 3 Mar 2023 21:56:54 +0800 Martzki wrote: > The library libpcap has their function 'bpf_validate' either so > there would be a multiple definition issue when linking with > librte_bpf.a and libpcap.a staticly. > > You can reproduce this issue by 'meson build -Dprefer_static=true > -Denab

[PATCH] lib/bpf: Rename 'bpf_validate' to avoid potential conflict with libpcap

2023-03-03 Thread Martzki
The library libpcap has their function 'bpf_validate' either so there would be a multiple definition issue when linking with librte_bpf.a and libpcap.a staticly. You can reproduce this issue by 'meson build -Dprefer_static=true -Denable_apps=test-pmd -Denable_drivers=net/af_xdp,net/af_packet'. Not