Re: [net-next PATCH 5/5] virtio_net: XDP support for adjust_head

2017-02-02 Thread Michael S. Tsirkin
On Thu, Feb 02, 2017 at 08:02:55PM -0800, Alexei Starovoitov wrote: > On Fri, Feb 03, 2017 at 05:42:54AM +0200, Michael S. Tsirkin wrote: > > On Thu, Feb 02, 2017 at 03:21:57PM -0800, John Fastabend wrote: > > > Add support for XDP adjust head by allocating a 256B header region > > > that XDP

Re: [net-next PATCH 5/5] virtio_net: XDP support for adjust_head

2017-02-02 Thread Alexei Starovoitov
On Fri, Feb 03, 2017 at 05:42:54AM +0200, Michael S. Tsirkin wrote: > On Thu, Feb 02, 2017 at 03:21:57PM -0800, John Fastabend wrote: > > Add support for XDP adjust head by allocating a 256B header region > > that XDP programs can grow into. This is only enabled when a XDP > > program is loaded. >

Re: [net-next PATCH 5/5] virtio_net: XDP support for adjust_head

2017-02-02 Thread Michael S. Tsirkin
On Thu, Feb 02, 2017 at 03:21:57PM -0800, John Fastabend wrote: > Add support for XDP adjust head by allocating a 256B header region > that XDP programs can grow into. This is only enabled when a XDP > program is loaded. > > In order to ensure that we do not have to unwind queue headroom push >

[net-next PATCH 5/5] virtio_net: XDP support for adjust_head

2017-02-02 Thread John Fastabend
Add support for XDP adjust head by allocating a 256B header region that XDP programs can grow into. This is only enabled when a XDP program is loaded. In order to ensure that we do not have to unwind queue headroom push queue setup below bpf_prog_add. It reads better to do a prog ref unwind vs