Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933406AbbELQA1 (ORCPT ); Tue, 12 May 2015 12:00:27 -0400 Received: from mail-ig0-f169.google.com ([209.85.213.169]:34115 "EHLO mail-ig0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933232AbbELQAV (ORCPT ); Tue, 12 May 2015 12:00:21 -0400 Date: Tue, 12 May 2015 09:00:17 -0700 From: Alexei Starovoitov To: Denys Vlasenko Cc: "David S. Miller" , Alexander Duyck , Joe Perches , Jiri Pirko , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org Subject: Re: [PATCH] net: deinline netif_tx_stop_all_queues(), remove WARN_ON in netif_tx_stop_queue() Message-ID: <20150512160016.GA3491@Alexeis-MBP.westell.com> References: <1431371873-26969-1-git-send-email-dvlasenk@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431371873-26969-1-git-send-email-dvlasenk@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1076 Lines: 27 On Mon, May 11, 2015 at 09:17:53PM +0200, 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 of netif_tx_stop_queue() > and 49 calls of netif_tx_stop_all_queues() in vmlinux. > > To fix this, remove WARN_ON in netif_tx_stop_queue() > as suggested by davem, and deinline netif_tx_stop_all_queues(). > > Change in code size is about 20k: > > text data bss dec hex filename > 82426986 22255416 20627456 125309858 77813a2 vmlinux.before > 82406248 22255416 20627456 125289120 777c2a0 vmlinux nice code shrink. Looks good to me. Acked-by: Alexei Starovoitov btw, in the future please say [PATCH net-next] as part of subject to make it clear what tree this patch is going to. -- 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/