Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754685AbZAZUkU (ORCPT ); Mon, 26 Jan 2009 15:40:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753422AbZAZUkD (ORCPT ); Mon, 26 Jan 2009 15:40:03 -0500 Received: from mga09.intel.com ([134.134.136.24]:1510 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752950AbZAZUkA (ORCPT ); Mon, 26 Jan 2009 15:40:00 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.37,327,1231142400"; d="scan'208";a="381568378" Subject: Re: hardware time stamping with optional structs in data area From: Patrick Ohly To: David Miller Cc: "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-api@vger.kernel.org" In-Reply-To: <20090125.210442.129666692.davem@davemloft.net> References: <1232102164.18762.72.camel@pohly-MOBL> <20090116.110033.163815590.davem@davemloft.net> <1232532457.7829.19.camel@ecld0pohly> <20090125.210442.129666692.davem@davemloft.net> Content-Type: text/plain Date: Mon, 26 Jan 2009 21:39:52 +0100 Message-Id: <1233002392.23161.6.camel@pohly-MOBL> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1057 Lines: 26 On Mon, 2009-01-26 at 07:04 +0200, David Miller wrote: > From: Patrick Ohly > Date: Wed, 21 Jan 2009 11:07:37 +0100 > See fs/compat_ioctl.c:dev_ifsioc() for how to handle the > "32-bit process under 64-bit kernel" issue wrt. struct ifreq Thanks, will do. > Just consolidate the array into a direct conversion table. You only > have 2 bits defined so you only need an array of 4 entries. Pass the > optional flag bits directly in as the index of that table. How can I get some code executed during the initialization of the IP stack which initializes the table, before any sk_buff gets allocated? The content is constant, but writing it down as static initializers using just preprocessor macros would be difficult and/or ugly - that's why I haven't done it already. Bye, Patrick -- 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/