From: Michael S. Tsirkin Date: Tue, 3 Feb 2015 09:07:06 +0000 (+0200) Subject: vhost/net: fix up num_buffers endian-ness X-Git-Tag: fixes-v4.0-rc1~200^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5201aa49b0fc12d9bf911090744ca04066bad4a7;p=pandora-kernel.git vhost/net: fix up num_buffers endian-ness In virtio 1.0 mode, when mergeable buffers are enabled on a big-endian host, num_buffers wasn't byte-swapped correctly, so large incoming packets got corrupted. To fix, fill it in within hdr - this also makes sure it gets the correct type. Signed-off-by: Michael S. Tsirkin Signed-off-by: David S. Miller --- Reading git-diff-tree failed