Re: [dpdk-dev] [PATCH] net/af_xdp: use bpf link for XDP programs

2021-10-22 Thread Loftus, Ciara
> > On 10/14/2021 10:50 AM, Ciara Loftus wrote: > > --- a/drivers/net/af_xdp/compat.h > > +++ b/drivers/net/af_xdp/compat.h > > @@ -2,9 +2,11 @@ > >* Copyright(c) 2020 Intel Corporation. > >*/ > > > > +#include > > #include > > #include > > #include > > +#include > > Hi Ciara,

Re: [dpdk-dev] [PATCH] net/af_xdp: use bpf link for XDP programs

2021-10-19 Thread Ferruh Yigit
On 10/14/2021 10:50 AM, Ciara Loftus wrote: --- a/drivers/net/af_xdp/compat.h +++ b/drivers/net/af_xdp/compat.h @@ -2,9 +2,11 @@ * Copyright(c) 2020 Intel Corporation. */ +#include #include #include #include +#include Hi Ciara, I am getting build error because xdp/filter.h

[dpdk-dev] [PATCH] net/af_xdp: use bpf link for XDP programs

2021-10-14 Thread Ciara Loftus
Since v0.4.0, if the underlying kernel supports it, libbpf uses 'bpf link' to manage the programs on the interfaces of the xsks. This has two repercussions for the PMD. 1. In the case where the PMD asks libbpf to load the default XDP program, the PMD no longer needs to remove it on teardown. This