Cédric Le Goater 032a74a1c0 virtio-net: byteswap virtio-net header
TCP connectivity fails when the guest has a different endianness.
The packets are silently dropped on the host by the tap backend
when they are read from user space because the endianness of the
virtio-net header is in the wrong order. These lines may appear
in the guest console:

[  454.709327] skbuff: bad partial csum: csum=8704/4096 len=74
[  455.702554] skbuff: bad partial csum: csum=8704/4096 len=74

The issue that got first spotted with a ppc64le PowerKVM guest,
but it also exists for the less common case of a x86_64 guest run
by a big-endian ppc64 TCG hypervisor.

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
[ Ported from PowerKVM,
  Greg Kurz <gkurz@linux.vnet.ibm.com> ]
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2014-06-29 19:39:41 +03:00
..
2014-06-23 11:12:28 -04:00
2014-06-23 11:01:24 -04:00
2014-06-27 11:19:31 +02:00
2013-12-24 18:02:18 +01:00
2014-06-20 16:22:07 +01:00
2014-06-23 11:01:25 -04:00
2014-06-24 20:01:24 +04:00
2014-06-27 13:48:26 +02:00
2014-06-19 18:44:22 +03:00
2014-05-28 17:36:21 +02:00
2014-06-20 23:40:16 +02:00
2014-06-27 13:48:23 +02:00
2014-06-27 13:48:22 +02:00
2014-06-23 17:49:49 +03:00
2014-06-27 13:48:24 +02:00
2014-06-10 09:50:27 +02:00
2014-06-23 11:01:25 -04:00
2014-05-28 17:36:21 +02:00
2013-08-22 19:10:27 +02:00
2014-06-27 09:27:56 -04:00
2014-05-07 18:38:39 +01:00