From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH net-next v4 4/8] forcedeth: expose module parameters in /sys/module Date: Tue, 15 Nov 2011 14:32:31 -0800 Message-ID: <20111115143231.454f612a@s6510.linuxnetplumber.net> References: <558f3ff3d373b1cdcbebebe842816b3c91438728.1321384662.git.david.decotigny@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Ian Campbell , Eric Dumazet , Jeff Kirsher , Ben Hutchings , Jiri Pirko , Joe Perches , Szymon Janc , Richard Jones , Ayaz Abdulla To: David Decotigny Return-path: Received: from mail.vyatta.com ([76.74.103.46]:59035 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757211Ab1KOWcg (ORCPT ); Tue, 15 Nov 2011 17:32:36 -0500 In-Reply-To: <558f3ff3d373b1cdcbebebe842816b3c91438728.1321384662.git.david.decotigny@google.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 15 Nov 2011 11:25:37 -0800 David Decotigny wrote: > +module_param(optimization_mode, int, S_IRUGO); > MODULE_PARM_DESC(optimization_mode, "In throughput mode (0), every tx & rx packet will generate an interrupt. In CPU mode (1), interrupts are controlled by a timer. In dynamic mode (2), the mode toggles between throughput and CPU mode based on network load."); Probably the original developer (or marketing data sheet), thought this was some unique feature of the hardware. But most devices have this already. This driver should just implement proper control irq coalescing control via ethtool and get rid of the silly module parameter.