From owner-freebsd-virtualization@FreeBSD.ORG Thu Jan 13 16:01:59 2011 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D231B106564A for ; Thu, 13 Jan 2011 16:01:59 +0000 (UTC) (envelope-from zec@fer.hr) Received: from munja.zvne.fer.hr (munja.zvne.fer.hr [161.53.66.248]) by mx1.freebsd.org (Postfix) with ESMTP id 67A508FC18 for ; Thu, 13 Jan 2011 16:01:58 +0000 (UTC) Received: from sluga.fer.hr ([161.53.66.244]) by munja.zvne.fer.hr with Microsoft SMTPSVC(6.0.3790.4675); Thu, 13 Jan 2011 16:49:52 +0100 Received: from localhost ([161.53.19.8]) by sluga.fer.hr with Microsoft SMTPSVC(6.0.3790.4675); Thu, 13 Jan 2011 16:49:52 +0100 From: Marko Zec To: freebsd-virtualization@freebsd.org Date: Thu, 13 Jan 2011 16:49:49 +0100 User-Agent: KMail/1.9.10 References: <4D2EF336.5010905@gmx.com> In-Reply-To: <4D2EF336.5010905@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201101131649.50628.zec@fer.hr> X-OriginalArrivalTime: 13 Jan 2011 15:49:52.0505 (UTC) FILETIME=[8457DE90:01CBB339] Cc: Subject: Re: if_bridge VIMAGE patch X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2011 16:01:59 -0000 On Thursday 13 January 2011 13:42:30 Nikos Vassiliadis wrote: > Hi, > > Please, review the attached patch. It is against yesterday's HEAD > and it virtualizes if_bridge. > > You can use the bridgetest script to create quickly a topology > with redundant links to test STP. Looks good to me, though I'm wondering is there any particular reason why you prefer to create bridge instances in the "root" vnet first, and then move them to other vnets, instead of creating bridge instances directly in target vnets? In other words: ifconfig bridge1 create ifconfig bridge1 vnet x vs jexec x ifconfig bridge1 create In a near future, each vnet will have its own list of cloning ifnets (currently only lo and vlan cloners are per-vnet, while other cloning ifnet types use global cloners), so maybe it might be a good practice to attempt to avoid having ifnet with its cloner attached in one vnet while being loaned to another (though in some cases this is unavoidable, such as with epair ifnets). Cheers, Marko