Received: by 10.213.65.68 with SMTP id h4csp1965457imn; Thu, 5 Apr 2018 06:53:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/V3c1qOk89/n/HkmIazal28A6QCLAebs7z5/hj3gjXit8nODfZSWek4S/G3wyQ2cMQDMY0 X-Received: by 2002:a17:902:4001:: with SMTP id b1-v6mr22682585pld.273.1522936398774; Thu, 05 Apr 2018 06:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522936398; cv=none; d=google.com; s=arc-20160816; b=C/y0XH62Baa46ZuNSY3AwdNk1owedEPUgZl9x+nYoTa5z939qJ+tsVL2ZI87Qy1sC2 croZk77F40j1ZjcmWfuW6FQVq6EkWe11vAl/tCIMkVPeTe/njWEWr/dGV2Y8pHD0GM8J h74pNzIaNaoBz4Qvu7qpZ0W2SkhtOIA7473zMRsPbbqkrYX9sYLZ2EjTRKXsl+3IukwY Tu8rslHoXeWYKUsaQgqkpl8wuBroMfyVGy/AeC9tsi/5lciZS2A8hxlGbUjiBMyBf0O8 TTwQl9zNfFLwg90SbJYzVXN8egPww6/te6L0f7uau6+nEM17Lnk2tI/etxPaaMUSyXh9 mJFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=43hZTiPuJEssf14zITaaF3cxzNXCOPTLdjaY/L2bKuU=; b=uPIDP9oAMZrfRC3Y7XgEpEqEJujbrs/wzAmRhP8/ZUF40sMZdqiC/+3kKZiVgha8Kq oDNvnRWAe9jitYALaRJvGYiRbISXS3jDiwc6HWPSrDv6/4MAHu8TRCl9WJMEonNXQHVU 58CyI5s6N8GMziB5p804gH5NJ41nUq6pBQtMeNmyUIw/Ljbd6te4lm9fXAhdLujOUxnr JsCQ4BrglzBjH+9JNLzfgUT8jqht7LjgCfsxtgbX9byWffspeBMRfN/bTfnUf3LwcwI6 m7gZX0bdZ+enTEtq+ClWI/Y8VjdTmwW3RbPTRJgyOpwIMeAOTXSlnTTPY5XOH0jw0XsU Vb6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r68si6180709pfi.413.2018.04.05.06.53.04; Thu, 05 Apr 2018 06:53:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751460AbeDENvj (ORCPT + 99 others); Thu, 5 Apr 2018 09:51:39 -0400 Received: from smtprelay0182.hostedemail.com ([216.40.44.182]:56684 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751165AbeDENvh (ORCPT ); Thu, 5 Apr 2018 09:51:37 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id A801F837F252; Thu, 5 Apr 2018 13:51:36 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::,RULES_HIT:41:334:355:368:369:379:541:599:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:4362:5007:7903:8603:10004:10400:10481:10848:11026:11232:11658:11914:12048:12740:12760:12895:13069:13146:13161:13229:13230:13311:13357:13439:14096:14097:14659:14721:19900:21080:21433:21451:21627:30003:30012:30054:30089:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:20,LUA_SUMMARY:none X-HE-Tag: team03_2ad5b3cf49351 X-Filterd-Recvd-Size: 2273 Received: from XPS-9350 (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf13.hostedemail.com (Postfix) with ESMTPA; Thu, 5 Apr 2018 13:51:34 +0000 (UTC) Message-ID: <1522936292.11185.15.camel@perches.com> Subject: Re: [PATCH 00/12] Ethernet: Add and use ether__addr globals From: Joe Perches To: Felix Fietkau , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, bridge@lists.linux-foundation.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org Cc: linux-kernel@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com Date: Thu, 05 Apr 2018 06:51:32 -0700 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-04-05 at 15:27 +0200, Felix Fietkau wrote: > On 2018-03-31 09:05, Joe Perches wrote: > > There are many local static and non-static arrays that are used for > > Ethernet broadcast address output or comparison. > > > > Centralize the array into a single separate file and remove the local > > arrays. > > I suspect that for many targets and configurations, the local arrays > might actually be smaller than exporting a global. I tried x86-64 allnoconfig and defconfig. Those both did not increase vmlinux size. The defconfig actually got smaller, but that might have been some object alignment oddity. > You have to factor in > not just the .text size, but the fact that referencing an exported > symbol needs a .reloc entry as well, which also eats up some space (at > least when the code is being built as module). Thanks, the modules I built got smaller. > In my opinion, your series probably causes more bloat in common > configurations instead of reducing it. > > You're also touching several places that could easily use > eth_broadcast_addr and eth_zero_addr. I think making those changes would > be more productive than what you did in this series. Doubtful. AFAIK: possible unaligned addresses.