Re: xdp generic default option

2020-08-20 Thread David Ahern
On 8/20/20 2:25 AM, Jesper Dangaard Brouer wrote: >>> diff --git a/net/core/dev.c b/net/core/dev.c >>> index a00aa737ce29..1f85880ee412 100644 >>> --- a/net/core/dev.c >>> +++ b/net/core/dev.c >>> @@ -8747,9 +8747,9 @@ static enum bpf_xdp_mode dev_xdp_mode(u32 flags) >>> { >>> if (flags &

Re: xdp generic default option

2020-08-20 Thread Jesper Dangaard Brouer
On Wed, 19 Aug 2020 13:57:51 -0700 Andrii Nakryiko wrote: > On Wed, Aug 19, 2020 at 2:29 AM Lorenzo Bianconi wrote: > > > > Hi Andrii, > > > > working on xdp multi-buff I figured out now xdp generic is the default > > choice > > if not specified by userspace. In particular after commit 7f0a8382

Re: xdp generic default option

2020-08-19 Thread Andrii Nakryiko
On Wed, Aug 19, 2020 at 2:29 AM Lorenzo Bianconi wrote: > > Hi Andrii, > > working on xdp multi-buff I figured out now xdp generic is the default choice > if not specified by userspace. In particular after commit 7f0a838254bd > ("bpf, xdp: Maintain info on attached XDP BPF programs in net_device")

Re: xdp generic default option

2020-08-19 Thread Jakub Kicinski
On Wed, 19 Aug 2020 11:28:11 +0200 Lorenzo Bianconi wrote: > Hi Andrii, > > working on xdp multi-buff I figured out now xdp generic is the default choice > if not specified by userspace. In particular after commit 7f0a838254bd > ("bpf, xdp: Maintain info on attached XDP BPF programs in net_device"

Re: xdp generic default option

2020-08-19 Thread Toke Høiland-Jørgensen
Lorenzo Bianconi writes: > Hi Andrii, > > working on xdp multi-buff I figured out now xdp generic is the default choice > if not specified by userspace. In particular after commit 7f0a838254bd > ("bpf, xdp: Maintain info on attached XDP BPF programs in net_device"), > running > the command below

xdp generic default option

2020-08-19 Thread Lorenzo Bianconi
Hi Andrii, working on xdp multi-buff I figured out now xdp generic is the default choice if not specified by userspace. In particular after commit 7f0a838254bd ("bpf, xdp: Maintain info on attached XDP BPF programs in net_device"), running the command below, XDP will run in generic mode even if th