Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759641AbYJVVOs (ORCPT ); Wed, 22 Oct 2008 17:14:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754300AbYJVVOf (ORCPT ); Wed, 22 Oct 2008 17:14:35 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:36540 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753678AbYJVVOe (ORCPT ); Wed, 22 Oct 2008 17:14:34 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Greg KH Cc: Benjamin Thery , netdev , Dave Miller , Al Viro , Serge Hallyn , Daniel Lezcano , linux-kernel@vger.kernel.org, Tejun Heo , Denis Lunev , Linux Containers References: <20081022152144.351965414@theryb.frec.bull.fr> <20081022201601.GC24959@suse.de> Date: Wed, 22 Oct 2008 14:08:26 -0700 In-Reply-To: <20081022201601.GC24959@suse.de> (Greg KH's message of "Wed, 22 Oct 2008 13:16:01 -0700") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-XM-SPF: eid=;;;mid=;;;hst=mx04.mta.xmission.com;;;ip=24.130.11.59;;;frm=ebiederm@xmission.com;;;spf=neutral X-SA-Exim-Connect-IP: 24.130.11.59 X-SA-Exim-Rcpt-To: too long (recipient list exceeded maximum allowed size of 128 bytes) X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-DCC: XMission; sa02 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Greg KH X-Spam-Relay-Country: X-Spam-Report: * -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 T_TM2_M_HEADER_IN_MSG BODY: T_TM2_M_HEADER_IN_MSG * -1.1 BAYES_05 BODY: Bayesian spam probability is 1 to 5% * [score: 0.0169] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa02 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 XM_SPF_Neutral SPF-Neutral Subject: Re: [PATCH 0/4][RFC] netns: sysfs: add a netns suffix to net device sysfs entries X-SA-Exim-Version: 4.2.1 (built Thu, 07 Dec 2006 04:40:56 +0000) X-SA-Exim-Scanned: Yes (on mx04.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 954 Lines: 27 Greg KH writes: > On Wed, Oct 22, 2008 at 05:21:44PM +0200, Benjamin Thery wrote: >> Network devices from sub-network namespaces appear in sysfs >> with a name that looks like this: device_name@netns_id >> eg: lo@3, eth0@4e > > How does the default udev rules as shipped by most distros handle the > renaming of the network device if the MAC address is duplicated like it > will be for these eth devices? The mac address is not duplicated. Further devices like eth0@4e are completely unusable to the udev rules in the initial network namespace because they can not talk to or affect them. As I read it Ben's ``solution'' puts entries in sysfs that are completely unusable to udev. Eric -- 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/