summary refs log tree commit diff stats
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorGreg Kurz <gkurz@linux.vnet.ibm.com>2015-06-17 15:23:49 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-06-19 12:17:49 +0200
commit5be7d9f1b1452613b95c6ba70b8d7ad3d0797991 (patch)
tree2d2269a330f8fccbbc3e4c818f536d002911c47d /hw/net/virtio-net.c
parent4ee9b43be9a6e4ae161a1e6322bfef90818589f6 (diff)
downloadfocaccia-qemu-5be7d9f1b1452613b95c6ba70b8d7ad3d0797991.tar.gz
focaccia-qemu-5be7d9f1b1452613b95c6ba70b8d7ad3d0797991.zip
vhost-net: tell tap backend about the vnet endianness
The default behaviour for TAP/MACVTAP is to consider vnet as native endian.

This patch handles the cases when this is not true:
- virtio 1.0: always little-endian
- legacy cross-endian

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>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions