From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Emelyanov Subject: Re: [RFC 0/5] bridge - introduce via_phys_dev feature Date: Fri, 26 Feb 2010 20:39:59 +0300 Message-ID: <4B88076F.8030302@openvz.org> References: <20090511114639.440944109@openvz.org> <20090519152153.012d4814@nehalam> <20090520192726.GF4968@lenovo> <20090520131225.03b7715a@nehalam> <20090521180805.GC4932@lenovo> <20090521140504.1865883b@nehalam> <20090522201850.GF5354@lenovo> <20100226081843.07f37742@nehalam> <20100226165104.GB5364@lenovo> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Cyrill Gorcunov , bridge@linux-foundation.org, netdev@vger.kernel.org, Denis Lunev To: Stephen Hemminger Return-path: Received: from mailhub.sw.ru ([195.214.232.25]:36044 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965508Ab0BZRkt (ORCPT ); Fri, 26 Feb 2010 12:40:49 -0500 In-Reply-To: <20100226165104.GB5364@lenovo> Sender: netdev-owner@vger.kernel.org List-ID: Cyrill Gorcunov wrote: > On Fri, Feb 26, 2010 at 08:18:43AM -0800, Stephen Hemminger wrote: >> Looking back at this. What if the API was simpler: Thanks for the reply, Stephen! >> Why not: >> 1. Setup bridge (and any other interfaces except eth0); includes bringing br0 up >> 2. Add eth0 to bridge with new flag to inherit >> a. brctl addif br0 eth0 inherit >> >> Inherit functionality would need to move address (Ether, IP, IPv6) >> and routes from eth0 to br0. >> I will see about doing it as much as possible in userspace. >> Solution is good, but we'll have to reconfigure netfilter matches that check for device name/ifindex and restore all this back when deleting eth0 from br0. Maybe it's better to implement it on the kernel side by sending a netdev notification and letting the subsystem reconfigure themselves? And what can we do with existing TCP connections bound to a device? > -- Cyrill