Michael S. Tsirkin 052bd52fa9 net: don't set native endianness
commit 5be7d9f1b1452613b95c6ba70b8d7ad3d0797991
    vhost-net: tell tap backend about the vnet endianness
makes vhost net always try to set LE - even if that matches the
native endian-ness.

This makes it fail on older kernels on x86 without TUNSETVNETLE support.

To fix, make qemu_set_vnet_le/qemu_set_vnet_be skip the
ioctl if it matches the host endian-ness.

Reported-by: Marcel Apfelbaum <marcel@redhat.com>
Cc: Greg Kurz <gkurz@linux.vnet.ibm.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
2015-10-21 09:24:44 +03:00
..
2013-03-25 11:13:10 +01:00
2015-09-25 14:56:38 +02:00
2015-10-21 09:24:44 +03:00
2015-06-22 18:20:40 +02:00
2015-06-17 17:12:54 +02:00
2015-06-19 12:17:25 +02:00
2015-06-19 12:17:25 +02:00
2015-06-19 12:17:25 +02:00
2015-06-19 12:17:25 +02:00
2015-06-19 12:17:25 +02:00
2015-06-19 11:30:57 +01:00
2012-12-19 08:31:29 +01:00