On 6/23/2022 10:58 PM, Thomas Monjalon wrote:
Hi,

It seems DPDK is not compatible with libbpf 0.8:

drivers/net/af_xdp/rte_eth_af_xdp.c:871:6: error: 'bpf_get_link_xdp_id' is 
deprecated: libbpf v0.8+: use bpf_xdp_query_id() instead
/usr/include/bpf/libbpf.h:1168:1: note: 'bpf_get_link_xdp_id' has been 
explicitly marked deprecated here
LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_query_id() instead")

drivers/net/af_xdp/rte_eth_af_xdp.c:876:2: error: 'bpf_set_link_xdp_fd' is 
deprecated: libbpf v0.8+: use bpf_xdp_attach() instead
/usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been 
explicitly marked deprecated here
LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead")

dpdk/drivers/net/af_xdp/rte_eth_af_xdp.c:1198:8: error: 'bpf_set_link_xdp_fd' 
is deprecated: libbpf v0.8+: use bpf_xdp_attach() instead
/usr/include/bpf/libbpf.h:1163:1: note: 'bpf_set_link_xdp_fd' has been 
explicitly marked deprecated here
LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_xdp_attach() instead")




From af_xdp documentation (doc.dpdk.org/guides/nics/af_xdp.html):

5.2. Prerequisites
This is a Linux-specific PMD, thus the following prerequisites apply:

Both libxdp >=v1.2.2 and libbpf libraries installed, or, libbpf <=v0.6.0

Reply via email to