From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH 2/2] loopback: minor statistics optimization Date: Wed, 27 Sep 2006 20:25:56 -0700 (PDT) Message-ID: <20060927.202556.09664533.davem@davemloft.net> References: <20060908112056.7ef03bac@localhost.localdomain> <20060927.200459.13769170.davem@davemloft.net> <451B3DCA.9010407@osdl.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jgarzik@pobox.com, netdev@vger.kernel.org Return-path: Received: from dsl027-180-168.sfo1.dsl.speakeasy.net ([216.27.180.168]:39562 "EHLO sunset.davemloft.net") by vger.kernel.org with ESMTP id S965250AbWI1DZ5 (ORCPT ); Wed, 27 Sep 2006 23:25:57 -0400 To: shemminger@osdl.org In-Reply-To: <451B3DCA.9010407@osdl.org> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Stephen Hemminger Date: Wed, 27 Sep 2006 20:13:14 -0700 > David Miller wrote: > > From: Stephen Hemminger > > Date: Fri, 8 Sep 2006 11:20:56 -0700 > > > > > >> Minor loopback enhancements for 2.6.19 > >> > >> The loopback device status structure is a singleton and doesn't > >> need to be allocated. Add ethtool_ops hooks to show checksum always on, > >> and make ethtool_ops const. > >> > >> Signed-off-by: Stephen Hemminger > >> > > > > The ethtool bits are OK, but putting the loopback stats into > > the image adds nearly 200 bytes of .data section space on > > 64-bit. > > > > I don't really think it's that big of a deal to avoid the > > kmalloc() call. > > > Yeah but doing the kmalloc is going to get a bigger chunk (rounded up), > anyway. The statistics should show up in BSS so it won't add to kernel size. Good point, I'll apply your patch.