Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757901AbYGGVff (ORCPT ); Mon, 7 Jul 2008 17:35:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755418AbYGGVfY (ORCPT ); Mon, 7 Jul 2008 17:35:24 -0400 Received: from mx1.redhat.com ([66.187.233.31]:35801 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755344AbYGGVfX (ORCPT ); Mon, 7 Jul 2008 17:35:23 -0400 Date: Mon, 7 Jul 2008 17:34:20 -0400 From: Bill Nottingham To: Patrick McHardy Cc: bridge@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Linux Netdev List Subject: Re: [RFC PATCH 0/2] Allow full bridge configuration via sysfs Message-ID: <20080707213420.GA20089@nostromo.devel.redhat.com> Mail-Followup-To: Patrick McHardy , bridge@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Linux Netdev List References: <4872819E.3040604@trash.net> <20080707205342.GA19710@nostromo.devel.redhat.com> <4872838B.1060603@trash.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4872838B.1060603@trash.net> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2138 Lines: 66 Patrick McHardy (kaber@trash.net) said: >> Also, moving bonding configuration to netlink seems >> like a step backwards. > > Please read up on what the standard interface for network > configuration is OK, let's see. In the code: Hm, no TODO or FIXME. In the included documentation: Documentation/networking/bonding.txt: Module options, modprobe.conf, or 'distro-specific configuration file', ifenslave, or sysfs. Documentation/networking/ip-sysctl.txt: sysctl, obviously. Documentation/networking/generic_netlink.txt Hey, here's netlink! Doucmentation points only to a wiki. Referred to by zero other included in-kernel documentation. Well, that's helpful. Let's try the OSDL web! http://www.linuxfoundation.org/en/Net:Bridge brctl (which uses ioctl and sysfs). And /etc/net. http://www.linuxfoundation.org/en/Net:Bonding Module parameters only, including the lovely 'load driver multiple times' method. Doesn't even mention sysfs. http://www.linuxfoundation.org/en/Net:VLAN vconfig I could look at wireless network configuration, but I doubt that's going to help your argument. > I'm tired of reiterating this once a week. Well, if the documentation that described this as the standard existed, or wasn't such crap, perhaps you wouldn't have to. That being said, how is moving from adding a bonding slave from: echo "+eth0" > /sys/class/net/bond0/bonding/slaves to: to: http://www.linuxfoundation.org/en/Net:Generic_Netlink_HOWTO a worthwhile improvement for the admin? Let's see, a kernel-userspace protocol with magic message formats. Hey, we reinvented ioctl! Why, if netlink is the standard (and it's been around for a long damn time), was sysfs configuration for bonding added in 2005? Why was bridge configuration added in 2005, and *extended* in 2006 and 2007? Why were the user-space tools such as brctl ported from ioctl to sysfs? Bill -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/