]> git.droids-corp.org - dpdk.git/commit
net/af_xdp: make compatible with libbpf >= 0.7.0
authorCiara Loftus <ciara.loftus@intel.com>
Thu, 17 Feb 2022 14:45:24 +0000 (14:45 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Feb 2022 10:37:34 +0000 (11:37 +0100)
commit8d3d9c72513ac116996a05700f18c10b332e7699
treef71bcfe8e7ceb6e4091251f05721c797ee8afb54
parent744fd4126937b7f195fac38ae24cab52d0922b04
net/af_xdp: make compatible with libbpf >= 0.7.0

libbpf v0.7.0 deprecates the bpf_prog_load function. Use meson to detect
if libbpf >= v0.7.0 is linked and if so, use the recommended replacement
functions bpf_object__open_file and bpf_object__load.

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
drivers/net/af_xdp/compat.h
drivers/net/af_xdp/meson.build
drivers/net/af_xdp/rte_eth_af_xdp.c