From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZglSI-0006io-R8 for qemu-devel@nongnu.org; Mon, 28 Sep 2015 23:19:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZglSF-0001J1-Mj for qemu-devel@nongnu.org; Mon, 28 Sep 2015 23:19:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZglSF-0001Ir-Gt for qemu-devel@nongnu.org; Mon, 28 Sep 2015 23:19:47 -0400 References: <1434799589-27171-1-git-send-email-shmulik.ladkani@ravellosystems.com> <20150622121320.GG20966@stefanha-thinkpad.redhat.com> <28e2f008.b3d6.15013cc4e1a.Coremail.cauchy-love@163.com> From: Jason Wang Message-ID: <560A034D.6020206@redhat.com> Date: Tue, 29 Sep 2015 11:19:41 +0800 MIME-Version: 1.0 In-Reply-To: <28e2f008.b3d6.15013cc4e1a.Coremail.cauchy-love@163.com> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Problems on vlan-based vnics! List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: cauchy-love , Stefan Hajnoczi Cc: Shmulik Ladkani , idan.brown@ravellosystems.com, Shmulik Ladkani , Stefan Hajnoczi , qemu-devel@nongnu.org On 09/28/2015 07:52 PM, cauchy-love wrote: > hi stefan. > I have setup a VM on a server with two NICs (eth0 and eth1). eth0 i= s connected with vlan22 and eth1 is connected with vlan33. I then added e= th0.22 to br2 and eth1.33 to br3. after that tap2 and tap3 were added to= br2 and br3 respectively. When i start up the vm, the network connectio= n is failed if tap2 and tap3 are allocated to this VM while it is ok if i= only allocate one tap to this VM. It is shown that the packets were all = routed to one NIC. So what is the problem? > yi > Need more information. You qemu command line or libvirt xml. Versions of qemu, host kernel and guest kernel. Is the issue only reproduced with e1000 or others? Does it work if there's no vlan? And maybe you can try qemu.git to see if it could be reproduced. Thanks > > > -- > =B7=A2=D7=D4=CE=D2=B5=C4=CD=F8=D2=D7=D3=CA=CF=E4=CA=D6=BB=FA=D6=C7=C4=DC= =B0=E6 > > > =D4=DA 2015-06-22 20:13:20=A3=AC"Stefan Hajnoczi" = =D0=B4=B5=C0=A3=BA >> On Sat, Jun 20, 2015 at 02:26:29PM +0300, Shmulik Ladkani wrote: >>> Currently, MAX_NICS is hardcoded as 8. >>> >>> Add a configuration option '--net-max-nics' so one can override the >>> default. >>> Unless specified, default value is kept as 8. >>> >>> Signed-off-by: Shmulik Ladkani >>> --- >>> configure | 7 +++++++ >>> include/net/net.h | 2 +- >>> 2 files changed, 8 insertions(+), 1 deletion(-) >> The -device e1000,netdev=3Dtap0,id=3De1000-nic0 syntax is preferred to= -net >> nic syntax and does not have the 8 NIC limit. >> >> Please use the -device syntax instead of -net. Emulated NICs that >> support virtio_net_hdr offload also perform better with the -device >> syntax because -net nic does not allow virtio_net_hdr offloads. >> >> If you think this patch should be merged, please explain the use case.