Re: [PATCH net-next 2/5] virtio-net: pack headroom into ctx for mergeable buffer

2017-07-18 Thread Jason Wang
On 2017年07月19日 02:59, Michael S. Tsirkin wrote: On Mon, Jul 17, 2017 at 08:43:58PM +0800, Jason Wang wrote: Pack headroom into ctx, then during XDP set, we could know the size of headroom and copy if needed. This is required for avoiding reset on XDP. Not really when XDP is set - it's when

Re: [PATCH net-next 2/5] virtio-net: pack headroom into ctx for mergeable buffer

2017-07-18 Thread Jason Wang
On 2017年07月19日 02:59, Michael S. Tsirkin wrote: On Mon, Jul 17, 2017 at 08:43:58PM +0800, Jason Wang wrote: Pack headroom into ctx, then during XDP set, we could know the size of headroom and copy if needed. This is required for avoiding reset on XDP. Not really when XDP is set - it's when

Re: [PATCH net-next 2/5] virtio-net: pack headroom into ctx for mergeable buffer

2017-07-18 Thread Michael S. Tsirkin
On Mon, Jul 17, 2017 at 08:43:58PM +0800, Jason Wang wrote: > Pack headroom into ctx, then during XDP set, we could know the size of > headroom and copy if needed. This is required for avoiding reset on > XDP. Not really when XDP is set - it's when buffers are used. virtio-net: pack headroom

Re: [PATCH net-next 2/5] virtio-net: pack headroom into ctx for mergeable buffer

2017-07-18 Thread Michael S. Tsirkin
On Mon, Jul 17, 2017 at 08:43:58PM +0800, Jason Wang wrote: > Pack headroom into ctx, then during XDP set, we could know the size of > headroom and copy if needed. This is required for avoiding reset on > XDP. Not really when XDP is set - it's when buffers are used. virtio-net: pack headroom

[PATCH net-next 2/5] virtio-net: pack headroom into ctx for mergeable buffer

2017-07-17 Thread Jason Wang
Pack headroom into ctx, then during XDP set, we could know the size of headroom and copy if needed. This is required for avoiding reset on XDP. Signed-off-by: Jason Wang --- drivers/net/virtio_net.c | 29 - 1 file changed, 24 insertions(+), 5

[PATCH net-next 2/5] virtio-net: pack headroom into ctx for mergeable buffer

2017-07-17 Thread Jason Wang
Pack headroom into ctx, then during XDP set, we could know the size of headroom and copy if needed. This is required for avoiding reset on XDP. Signed-off-by: Jason Wang --- drivers/net/virtio_net.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git