Michael S. Tsirkin 5201aa49b0 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 <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-04 13:59:31 -08:00
..
2013-07-07 17:33:44 +03:00
2013-07-07 17:33:44 +03:00
2014-06-09 16:21:07 +03:00
2010-12-09 16:00:21 +02:00
2014-12-29 10:55:06 +02:00
2014-12-15 23:49:28 +02:00