From mboxrd@z Thu Jan 1 00:00:00 1970 From: dann frazier Subject: Re: PATCH: Network Device Naming mechanism and policy Date: Fri, 16 Oct 2009 09:41:37 -0600 Message-ID: <20091016154137.GB9862@ldl.fc.hp.com> References: <20091009140000.GA18765@mock.linuxdev.us.dell.com> <20091013150839.GD32107@ldl.fc.hp.com> <20091013173638.GE1119@ldl.fc.hp.com> <20091016003245.GD29672@ldl.fc.hp.com> <20091016152053.GA9862@ldl.fc.hp.com> <1255707193.2869.12.camel@achroite> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Narendra_K@Dell.com, netdev@vger.kernel.org, linux-hotplug@vger.kernel.org, Matt_Domsch@Dell.com, Jordan_Hargrave@Dell.com, Charles_Rose@Dell.com To: Ben Hutchings Return-path: Received: from g1t0026.austin.hp.com ([15.216.28.33]:11870 "EHLO g1t0026.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760604AbZJPPmO (ORCPT ); Fri, 16 Oct 2009 11:42:14 -0400 Content-Disposition: inline In-Reply-To: <1255707193.2869.12.camel@achroite> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Oct 16, 2009 at 04:33:13PM +0100, Ben Hutchings wrote: > On Fri, 2009-10-16 at 09:20 -0600, dann frazier wrote: > > On Fri, Oct 16, 2009 at 07:32:50PM +0530, Narendra_K@Dell.com wrote: > [...] > > > And how would the regular file look like in terms of holding ifindex of > > > the interface, which can be passed to libnetdevname. > > > > I can't think of anything we need to store in the regular file. If we > > have the kernel name for the device, we can look up the ifindex in > > /sys. Correct me if I'm wrong, but storing it ourselves seems > > redundant. > > But the name of a netdev can change whereas its ifindex never does. > Identifying netdevs by name would require additional work to update the > links when a netdev is renamed and would still be prone to race > conditions. This is why Narendra and Matt were proposing to store the > ifindex in the node all along... ah, yes - I see that now - the ability to rename an interface is what prevents this from working. Thanks for the explanation. -- dann frazier