net: set endianness on all backend devices
commita407644079c8639002e7ea635d851953b10a38c3
authorLaurent Vivier <lvivier@redhat.com>
Wed, 13 Jan 2016 19:26:25 +0000 (13 20:26 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 6 Feb 2016 18:44:10 +0000 (6 20:44 +0200)
tree8a3ade768307bfb2207022f70732c895fe1927f1
parent428c3ece97179557f2753071fb0ca97a03437267
net: set endianness on all backend devices

commit 5be7d9f1b1452613b95c6ba70b8d7ad3d0797991
       vhost-net: tell tap backend about the vnet endianness

makes vhost net to set the endianness of the device, but only for
the first device.

In case of multiqueue, we have multiple devices... This patch sets the
endianness for all the devices of the interface.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
hw/net/vhost_net.c