Re: [PATCH net-next 21/33] virtio_net: add XDP frame size in two code paths

2020-05-05 Thread Jason Wang
On 2020/4/28 下午5:50, Jason Wang wrote: On 2020/4/27 下午10:32, Jesper Dangaard Brouer wrote: On Mon, 27 Apr 2020 15:21:02 +0800 Jason Wang wrote: On 2020/4/23 上午12:09, Jesper Dangaard Brouer wrote: The virtio_net driver is running inside the guest-OS. There are two XDP receive code-paths in

Re: [PATCH net-next 21/33] virtio_net: add XDP frame size in two code paths

2020-04-30 Thread Jesper Dangaard Brouer
On Tue, 28 Apr 2020 17:50:11 +0800 Jason Wang wrote: > We tried to reserve space for vnet header before > xdp.data_hard_start. But this is useless since the packet could be > modified by XDP which may invalidate the information stored in the > header and there's no way for XDP to know the existen

Re: [PATCH net-next 21/33] virtio_net: add XDP frame size in two code paths

2020-04-28 Thread Jason Wang
On 2020/4/27 下午10:32, Jesper Dangaard Brouer wrote: On Mon, 27 Apr 2020 15:21:02 +0800 Jason Wang wrote: On 2020/4/23 上午12:09, Jesper Dangaard Brouer wrote: The virtio_net driver is running inside the guest-OS. There are two XDP receive code-paths in virtio_net, namely receive_small() and re