From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: Re: [Bridge] [RFC 0/5] bridge - introduce via_phys_dev feature Date: Tue, 12 May 2009 21:21:36 +0400 Message-ID: <20090512172136.GC12820@lenovo> References: <20090511114639.440944109@openvz.org> <20090512162432.GA12820@lenovo> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Stephen Hemminger , netdev@vger.kernel.org, bridge@lists.linux-foundation.org, davem@davemloft.net, xemul@openvz.org To: Daniel Robbins Return-path: Received: from fk-out-0910.google.com ([209.85.128.190]:23819 "EHLO fk-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755299AbZELRVi (ORCPT ); Tue, 12 May 2009 13:21:38 -0400 Received: by fk-out-0910.google.com with SMTP id 18so53517fkq.5 for ; Tue, 12 May 2009 10:21:37 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: [Daniel Robbins - Tue, May 12, 2009 at 11:07:14AM -0600] | On Tue, May 12, 2009 at 10:24 AM, Cyrill Gorcunov wrote: | > So, Daniel, i think the right question is -- do I ever need to | > configure/setup bridge remotely? I suppose yes, it happens. | > (at least I had a machine with lack of input device except a few | > =A0NICs :-) |=20 | Aha, yes it would be useful in that case :) |=20 | So is the idea that you use via_phys_dev *temporarily* when | configuring the bridge, then you get it set up the way you want, and | then maybe you reboot the machine, and this time leave via_phys_dev | off? Or are there certain cases you can envision where you might want | this enabled permanently? You could turn this feature on while configuring bridge, then as only you have done all you need you just turn it off and bridge back to its regular behaviour (and remote connection lost of course). So no need for reboot. At moment sysfs entry is added and ioctls as well (though bridge utils need some change to support new ioctls). Permanently... it could be usefull if you initially planned to have rem= ote access to bridge-master machine. Ie instead to set up IP for bridge device you remain with master device IP (say eth0). |=20 | > This feature already was in OpenVZ 2.6.24 kernel. I'm more intirest= ing in | > usefulness of this feature for the mainline. (in short -- we use it= for bridging | > VEs with eth0 as a master device so all works without needing to | > reconfigure routing table). Moreover, since bridge already support | > namespacing the feature could be usefull for lxc as well (though | > didn't check to be fair). |=20 | But not in the OpenVZ 2.6.27-briullov kernel yet, at least the one I'= m | running :) it's just a quiestion of time :) |=20 | > That is why it's RFC so people could decide should it be included | > into mainline or not. Worth it so or not. |=20 | If it is accepted into mainline, be sure to send Stephen some | documentation on this feature so he can add it to the net:bridge docs= =2E | When features like this aren't documented, no one knows how to use | them. I just ran into this issue with the 2.6.27+ "sticky" bridge MAC | feature. I'd also be willing to help keeping the bridge docs | up-to-date. Please let me know if you or Stephen want me to do this. | Bridging is really important for OpenVZ and other | container/paravirtualization technologies so keeping docs up-to-date | is becoming more important. It can be useful to have a | non-kernel-developer like me document the functionality. Of course, though with my english better to not touch docs :) But again -- this series requires _strong_ review and testing (since I'm not a netdevel expert) |=20 | Best Regards, |=20 | Daniel |=20 -- Cyrill