From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] genetlink: add auto module loading Date: Wed, 28 Dec 2011 14:03:15 -0500 (EST) Message-ID: <20111228.140315.1485215996445763095.davem@davemloft.net> References: <20111228101958.2326b7cc@nehalam.linuxnetplumber.net> <20111228.134939.1155715366574563784.davem@davemloft.net> <20111228110208.5f6de3d8@nehalam.linuxnetplumber.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: shemminger@vyatta.com Return-path: Received: from shards.monkeyblade.net ([198.137.202.13]:56910 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754166Ab1L1TDR (ORCPT ); Wed, 28 Dec 2011 14:03:17 -0500 In-Reply-To: <20111228110208.5f6de3d8@nehalam.linuxnetplumber.net> Sender: netdev-owner@vger.kernel.org List-ID: From: Stephen Hemminger Date: Wed, 28 Dec 2011 11:02:08 -0800 > On Wed, 28 Dec 2011 13:49:39 -0500 (EST) > David Miller wrote: > >> From: Stephen Hemminger >> Date: Wed, 28 Dec 2011 10:19:58 -0800 >> >> > When testing L2TP support, I discovered that the l2tp module is not autoloaded >> > as are other netlink interfaces. There is because of lack of hook in genetlink to call >> > request_module and load the module. >> > >> > Signed-off-by: Stephen Hemminger >> >> Applied, but for completeness we should probably also handle the "by ID" case right >> above this code block too. >> >> Could you please submit a patch for that? >> >> Thanks. > > There is no point really. All the existing drivers, > use GENL_ID_GENERATE which generates the ID when they are loaded. > Chicken and egg principle. Ok, then I wonder why we support ID based lookups at all.