Re: [Qemu-devel] [PATCH] virtio-net: keep the packet layout intact

2017-05-15 Thread Michael S. Tsirkin
On Mon, May 15, 2017 at 05:29:15PM +0800, Wei Wang wrote: > Ping for comments, thanks. > > On 05/11/2017 12:57 PM, Wei Wang wrote: > > The current implementation may change the packet layout when > > vnet_hdr needs an endianness swap. The layout change causes > > one more iov to be added to the io

Re: [Qemu-devel] [PATCH] virtio-net: keep the packet layout intact

2017-05-15 Thread Wei Wang
Ping for comments, thanks. On 05/11/2017 12:57 PM, Wei Wang wrote: The current implementation may change the packet layout when vnet_hdr needs an endianness swap. The layout change causes one more iov to be added to the iov[] passed from the guest, which is a barrier to making the TX queue size

[Qemu-devel] [PATCH] virtio-net: keep the packet layout intact

2017-05-10 Thread Wei Wang
The current implementation may change the packet layout when vnet_hdr needs an endianness swap. The layout change causes one more iov to be added to the iov[] passed from the guest, which is a barrier to making the TX queue size 1024 due to the possible off-by-one issue. This patch changes the imp