Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751829AbWLNAVU (ORCPT ); Wed, 13 Dec 2006 19:21:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751832AbWLNAVU (ORCPT ); Wed, 13 Dec 2006 19:21:20 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:53520 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751817AbWLNAVT (ORCPT ); Wed, 13 Dec 2006 19:21:19 -0500 Date: Wed, 13 Dec 2006 16:21:17 -0800 (PST) Message-Id: <20061213.162117.125896771.davem@davemloft.net> To: shemminger@osdl.org Cc: bunk@stusta.de, tgraf@suug.ch, viro@ftp.linux.org.uk, jgarzik@pobox.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [2.6 patch] drivers/net/loopback.c: convert to module_init() From: David Miller In-Reply-To: <20061213154125.5e118ba5@dxpl.pdx.osdl.net> References: <20061213231848.GY8693@postel.suug.ch> <20061213233128.GD3629@stusta.de> <20061213154125.5e118ba5@dxpl.pdx.osdl.net> X-Mailer: Mew version 5.1.52 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 26 From: Stephen Hemminger Date: Wed, 13 Dec 2006 15:41:25 -0800 > But what if other network device is not a module. We want loopback > to be first. so it needs to be before other device_initcall's There is zero evidence that loopback must be first. I was not able to provide any after my study of the code last night, and I haven't seen any concrete proof shown today either. You mentioned "the dst code" relies on ifindex==1, what exactly do you mean by that? Give specific code examples instead of ambiguous and non-specific references. And this claim doesn't make any sense, because anyone who looks at drivers/net/Makefile can see that several drivers are linked in way before Space.o, and thus when built statically would today end up in the device list way before the loopback driver. So it can't be "broken" by Adrian's change, since it's already not putting loopback first and we can prove this! :-) - 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/