Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751972AbbEGSon (ORCPT ); Thu, 7 May 2015 14:44:43 -0400 Received: from smtprelay0050.hostedemail.com ([216.40.44.50]:45996 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750859AbbEGSol (ORCPT ); Thu, 7 May 2015 14:44:41 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:334:355:368:369:379:541:599:967:973:988:989:1260:1263:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2560:2563:2682:2685:2828:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6119:6261:7903:8603:9025:9388:10004:10400:10450:10455:10848:11026:11232:11658:11914:12043:12114:12294:12296:12438:12517:12519:12740:13019:13069:13161:13229:13311:13357:19904:19999:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: day35_2886dfa56db2c X-Filterd-Recvd-Size: 1957 Message-ID: <1431024277.18597.11.camel@perches.com> Subject: Re: [PATCH] net: deinline netif_tx_stop_queue() and netif_tx_stop_all_queues() From: Joe Perches To: Alexander Duyck Cc: Denys Vlasenko , "David S. Miller" , Jiri Pirko , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org Date: Thu, 07 May 2015 11:44:37 -0700 In-Reply-To: <554B9D82.80101@gmail.com> References: <1430998870-1453-1-git-send-email-dvlasenk@redhat.com> <554B9D82.80101@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1192 Lines: 32 On Thu, 2015-05-07 at 10:14 -0700, Alexander Duyck wrote: > On 05/07/2015 04:41 AM, Denys Vlasenko wrote: > > These functions compile to ~60 bytes of machine code each. > > > > With this .config: http://busybox.net/~vda/kernel_config > > there are 617 calls to netif_tx_stop_queue() > > and 49 calls to netif_tx_stop_all_queues() in vmlinux. > > > > Code size is reduced by 27 kbytes: [] > This is the WARN_ON action. One thing you might try doing is moving > this to a function of its own instead of moving the entire thing out of > being an inline. You may find you still get most of the space savings > as I wonder if the string for the printk isn't being duplicated for each > caller. It is effectively duplicated (with different prefixes) if there is a #define pr_fmt(fmt) "some_prefix: " fmt before this code is reached. That's most callers now. The code that doesn't have a pr_fmt should get symbol deduplicated at link time. -- 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/