[PATCH v4] lib/bpf: Rename bpf function names to avoid potential conflict with libpcap

2023-03-11 Thread J.J. 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 statically (Same as http://dpdk.org/patch/52631). So just rename the function names to avoid such issue. Signed-off-by: J.J. Martzk

Re: [PATCH v4] lib/bpf: Rename bpf function names to avoid potential conflict with libpcap

2023-03-13 Thread J.J. Martzki
I've read the libbpf code again and I found some other functions with pure 'bpf_' prefix. Should we rename all the functions whose names start with pure 'bpf_'? Konstantin Ananyev 于2023年3月12日周日 22:02写道: > > 12/03/2023 06:20, J.J. Martzki пишет: > > T

[PATCH v5] lib/bpf: Rename bpf function names to avoid potential conflict with libpcap

2023-03-14 Thread J.J. 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 statically (Same as http://dpdk.org/patch/52631). So just rename the function names to avoid such issue. Signed-off-by: J.J. Martzk