[PATCH] net/af_xdp: make the PMD compatible with libbpf >= v0.7.0
Loftus, Ciara
ciara.loftus at intel.com
Thu Feb 17 15:26:39 CET 2022
> Subject: Re: [PATCH] net/af_xdp: make the PMD compatible with libbpf >=
> v0.7.0
>
> On Thu, Feb 17, 2022 at 12:14:30PM +0000, Ciara Loftus wrote:
> > 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_oject__load.
> >
> > Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
> > ---
> > drivers/net/af_xdp/compat.h | 39
> +++++++++++++++++++++++++++++
> > drivers/net/af_xdp/meson.build | 5 ++++
> > drivers/net/af_xdp/rte_eth_af_xdp.c | 9 +++----
> > 3 files changed, 48 insertions(+), 5 deletions(-)
> >
> <snip>
> > diff --git a/drivers/net/af_xdp/meson.build
> b/drivers/net/af_xdp/meson.build
> > index 93e895eab9..9fe4063b99 100644
> > --- a/drivers/net/af_xdp/meson.build
> > +++ b/drivers/net/af_xdp/meson.build
> > @@ -22,6 +22,11 @@ if cc.has_header('linux/if_xdp.h')
> > cflags += ['-DRTE_NET_AF_XDP_SHARED_UMEM']
> > ext_deps += xdp_dep
> > ext_deps += bpf_dep
> > + bpf_ver_dep = dependency('libbpf', version : '>=0.6.0',
>
> typo? Commit log refers to v0.7.
Indeed. Thanks for the catch! v2 on the way.
Ciara
More information about the dev
mailing list