Re: [PATCH] vhost: cleanup iterator update logic

2015-02-27 Thread David Miller
From: "Michael S. Tsirkin" Date: Tue, 24 Feb 2015 17:31:31 +0100 > Recent iterator-related changes in vhost made it > harder to follow the logic fixing up the header. > In fact, the fixup always happens at the same > offset: sizeof(virtio_net_hdr): sometimes the > fixup iterator is updated by cop

[PATCH] vhost: cleanup iterator update logic

2015-02-25 Thread Michael S. Tsirkin
Recent iterator-related changes in vhost made it harder to follow the logic fixing up the header. In fact, the fixup always happens at the same offset: sizeof(virtio_net_hdr): sometimes the fixup iterator is updated by copy_to_iter, sometimes-by iov_iter_advance. Rearrange code to make this obviou

[PATCH] vhost: cleanup iterator update logic

2015-02-24 Thread Michael S. Tsirkin
Recent iterator-related changes in vhost made it harder to follow the logic fixing up the header. In fact, the fixup always happens at the same offset: sizeof(virtio_net_hdr): sometimes the fixup iterator is updated by copy_to_iter, sometimes-by iov_iter_advance. Rearrange code to make this obviou