Received: from eggs.gnu.org ([2001:4830:134:3::10]:50834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJenj-0007JC-8Y for qemu-devel@nongnu.org; Thu, 14 Jan 2016 05:06:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJenh-0003ah-2I for qemu-devel@nongnu.org; Thu, 14 Jan 2016 05:06:43 -0500 Received: from e06smtp05.uk.ibm.com ([195.75.94.101]:39397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJeng-0003aJ-OM for qemu-devel@nongnu.org; Thu, 14 Jan 2016 05:06:40 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 14 Jan 2016 10:06:37 -0000 Date: Thu, 14 Jan 2016 11:06:32 +0100 From: Cornelia Huck Message-ID: <20160114110632.5691be6f.cornelia.huck@de.ibm.com> In-Reply-To: <20160114090149.5aaac498@bahia.huguette.org> References: <1452713185-23517-1-git-send-email-lvivier@redhat.com> <20160114090149.5aaac498@bahia.huguette.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] net: set endianness on all backend devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz Cc: Laurent Vivier , mst@redhat.com, qemu-stable@nongnu.org, qemu-devel@nongnu.org On Thu, 14 Jan 2016 09:01:49 +0100 Greg Kurz wrote: > On Wed, 13 Jan 2016 20:26:25 +0100 > Laurent Vivier wrote: > > > 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 > > --- > > Thanks for fixing this bug... it's been there since 2.4.0. I guess we > should backport this to 2.4 and 2.5. Cc'ing stable. Agree on backporting this. > Reviewed-by: Greg Kurz > > > hw/net/vhost_net.c | 23 +++++++++++------------ > > 1 file changed, 11 insertions(+), 12 deletions(-) > > > > diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c > > index 318c3e6..10e233a 100644 > > --- a/hw/net/vhost_net.c > > +++ b/hw/net/vhost_net.c > > @@ -300,21 +300,19 @@ int vhost_net_start(VirtIODevice *dev, NetClientState *ncs, > > BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(dev))); > > VirtioBusState *vbus = VIRTIO_BUS(qbus); > > VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus); > > - int r, e, i; > > + int r, e, i, j; Nice alphabet soup ;) Reviewed-by: Cornelia Huck