Re: [PATCH net-next 4/5] virtio-net: do not reset during XDP set

2017-07-18 Thread Jason Wang
On 2017年07月19日 03:49, Michael S. Tsirkin wrote: On Mon, Jul 17, 2017 at 08:44:00PM +0800, Jason Wang wrote: We used to reset during XDP set, the main reason is we need allocate extra headroom for header adjustment but there's no way to know the headroom of exist receive buffer. This works buy

Re: [PATCH net-next 4/5] virtio-net: do not reset during XDP set

2017-07-18 Thread Michael S. Tsirkin
On Mon, Jul 17, 2017 at 08:44:00PM +0800, Jason Wang wrote: > We used to reset during XDP set, the main reason is we need allocate > extra headroom for header adjustment but there's no way to know the > headroom of exist receive buffer. This works buy maybe complex and may > cause the network down

[PATCH net-next 4/5] virtio-net: do not reset during XDP set

2017-07-17 Thread Jason Wang
We used to reset during XDP set, the main reason is we need allocate extra headroom for header adjustment but there's no way to know the headroom of exist receive buffer. This works buy maybe complex and may cause the network down for a while which is bad for user experience. So this patch tries to