Re: [PATCH net] vhost_net: do not report a used len larger than receive buffer size

2014-02-12 Thread Michael S. Tsirkin
On Wed, Feb 12, 2014 at 01:57:46PM +0800, Jason Wang wrote: > Currently, even if the packet were truncated by lower socket, we still > report the packet size as the used len which may confuse guest > driver. Fixes this by returning the size of guest receive buffer instead. > > Fixes 3a4d5c94e95935

[PATCH net] vhost_net: do not report a used len larger than receive buffer size

2014-02-11 Thread Jason Wang
Currently, even if the packet were truncated by lower socket, we still report the packet size as the used len which may confuse guest driver. Fixes this by returning the size of guest receive buffer instead. Fixes 3a4d5c94e959359ece6d6b55045c3f046677f55c (vhost_net: a kernel-level virtio server)