[PATCH] net/af_xdp: limit libbpf version to <= v0.7.0
Thomas Monjalon
thomas at monjalon.net
Fri Jun 24 10:28:02 CEST 2022
24/06/2022 08:06, Ciara Loftus:
> Linking with libbpf v0.8.0 causes deprication warnings. As a temporary
> measure, prevent linking with libbpf versions v0.8.0 and greater. This
> limitation should be removed in the future when appropriate
> compatibility measures are introduced.
>
> Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
> ---
> -bpf_dep = dependency('libbpf', required: false, method: 'pkg-config')
> -if not bpf_dep.found()
> - bpf_dep = cc.find_library('bpf', required: false)
> -endif
> +bpf_dep = dependency('libbpf', version : '<=0.7.0', required: false, method: 'pkg-config')
It is also removing the find_library() method.
Any reason it was there?
More information about the dev
mailing list