Re: [net-next PATCH v2 3/5] virtio_net: Add XDP support

2016-11-28 Thread John Fastabend
[...] >> Perfect! hacking qemu for testing is no problem this helps a lot thanks >> and saves me time trying to figure out how to get qemu to do this. > > Pls note I didn't try this at all, so might not work, but should > give you the idea. > >>> >>> diff --git a/hw/net/virtio-net.c b/hw/net/vir

Re: [net-next PATCH v2 3/5] virtio_net: Add XDP support

2016-11-27 Thread Michael S. Tsirkin
On Sun, Nov 27, 2016 at 07:56:09PM -0800, John Fastabend wrote: > On 16-11-27 07:36 PM, Michael S. Tsirkin wrote: > > On Fri, Nov 25, 2016 at 01:24:03PM -0800, John Fastabend wrote: > >> On 16-11-22 06:58 AM, Michael S. Tsirkin wrote: > >>> On Tue, Nov 22, 2016 at 12:27:03AM -0800, John Fastabend w

Re: [net-next PATCH v2 3/5] virtio_net: Add XDP support

2016-11-27 Thread John Fastabend
On 16-11-27 07:36 PM, Michael S. Tsirkin wrote: > On Fri, Nov 25, 2016 at 01:24:03PM -0800, John Fastabend wrote: >> On 16-11-22 06:58 AM, Michael S. Tsirkin wrote: >>> On Tue, Nov 22, 2016 at 12:27:03AM -0800, John Fastabend wrote: On 16-11-21 03:20 PM, Michael S. Tsirkin wrote: > On Sat,

Re: [net-next PATCH v2 3/5] virtio_net: Add XDP support

2016-11-27 Thread Michael S. Tsirkin
On Fri, Nov 25, 2016 at 01:24:03PM -0800, John Fastabend wrote: > On 16-11-22 06:58 AM, Michael S. Tsirkin wrote: > > On Tue, Nov 22, 2016 at 12:27:03AM -0800, John Fastabend wrote: > >> On 16-11-21 03:20 PM, Michael S. Tsirkin wrote: > >>> On Sat, Nov 19, 2016 at 06:50:33PM -0800, John Fastabend w

Re: [net-next PATCH v2 3/5] virtio_net: Add XDP support

2016-11-25 Thread John Fastabend
On 16-11-22 06:58 AM, Michael S. Tsirkin wrote: > On Tue, Nov 22, 2016 at 12:27:03AM -0800, John Fastabend wrote: >> On 16-11-21 03:20 PM, Michael S. Tsirkin wrote: >>> On Sat, Nov 19, 2016 at 06:50:33PM -0800, John Fastabend wrote: From: Shrijeet Mukherjee This adds XDP support to

Re: [net-next PATCH v2 3/5] virtio_net: Add XDP support

2016-11-22 Thread Michael S. Tsirkin
On Tue, Nov 22, 2016 at 12:27:03AM -0800, John Fastabend wrote: > On 16-11-21 03:20 PM, Michael S. Tsirkin wrote: > > On Sat, Nov 19, 2016 at 06:50:33PM -0800, John Fastabend wrote: > >> From: Shrijeet Mukherjee > >> > >> This adds XDP support to virtio_net. Some requirements must be > >> met for

Re: [net-next PATCH v2 3/5] virtio_net: Add XDP support

2016-11-22 Thread John Fastabend
On 16-11-21 03:20 PM, Michael S. Tsirkin wrote: > On Sat, Nov 19, 2016 at 06:50:33PM -0800, John Fastabend wrote: >> From: Shrijeet Mukherjee >> >> This adds XDP support to virtio_net. Some requirements must be >> met for XDP to be enabled depending on the mode. First it will >> only be supported

Re: [net-next PATCH v2 3/5] virtio_net: Add XDP support

2016-11-21 Thread Michael S. Tsirkin
On Sat, Nov 19, 2016 at 06:50:33PM -0800, John Fastabend wrote: > From: Shrijeet Mukherjee > > This adds XDP support to virtio_net. Some requirements must be > met for XDP to be enabled depending on the mode. First it will > only be supported with LRO disabled so that data is not pushed > across

[net-next PATCH v2 3/5] virtio_net: Add XDP support

2016-11-19 Thread John Fastabend
From: Shrijeet Mukherjee This adds XDP support to virtio_net. Some requirements must be met for XDP to be enabled depending on the mode. First it will only be supported with LRO disabled so that data is not pushed across multiple buffers. The MTU must be less than a page size to avoid having to h