Re: [PATCH net-next 3/5] virtio-net: switch to use new ctx API for small buffer

2017-07-18 Thread Jason Wang
On 2017年07月19日 03:20, Michael S. Tsirkin wrote: what's needed is ability to store the headroom there. virtio-net: switch to use ctx API for small buffers Use ctx API to store headroom for small buffers. Following patches will retrieve this info and use it for XDP. On Mon, Jul 17, 2017 at 08:

Re: [PATCH net-next 3/5] virtio-net: switch to use new ctx API for small buffer

2017-07-18 Thread Michael S. Tsirkin
what's needed is ability to store the headroom there. virtio-net: switch to use ctx API for small buffers Use ctx API to store headroom for small buffers. Following patches will retrieve this info and use it for XDP. On Mon, Jul 17, 2017 at 08:43:59PM +0800, Jason Wang wrote: > Switch to use ctx

[PATCH net-next 3/5] virtio-net: switch to use new ctx API for small buffer

2017-07-17 Thread Jason Wang
Switch to use ctx API for small buffer, this is need for avoiding reset on XDP. Signed-off-by: Jason Wang --- drivers/net/virtio_net.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 8fae9a8..e31b5b2 10064