Re: [PATCH net] vhost_net: fix wrong iter offset when setting number of buffers

2015-02-15 Thread David Miller
From: Jason Wang Date: Sun, 15 Feb 2015 16:35:17 +0800 > In commit ba7438aed924 ("vhost: don't bother copying iovecs in > handle_rx(), kill memcpy_toiovecend()"), we advance iov iter fixup > sizeof(struct virtio_net_hdr) bytes and fill the number of buffers > after doing the socket recvmsg(). Thi

[PATCH net] vhost_net: fix wrong iter offset when setting number of buffers

2015-02-15 Thread Jason Wang
In commit ba7438aed924 ("vhost: don't bother copying iovecs in handle_rx(), kill memcpy_toiovecend()"), we advance iov iter fixup sizeof(struct virtio_net_hdr) bytes and fill the number of buffers after doing the socket recvmsg(). This work well but was broken after commit 6e03f896b52c ("Merge git: