Received: by 10.213.65.68 with SMTP id h4csp1983346imn; Thu, 5 Apr 2018 07:08:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/xlPBw0kg9nFJ8zIT7SbIDkN2B3onoocMr4Y2FRU4TRHj2NYY8Zso0uLYET+8Ffn9KLbPB X-Received: by 2002:a17:902:7804:: with SMTP id p4-v6mr23374376pll.17.1522937283308; Thu, 05 Apr 2018 07:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522937283; cv=none; d=google.com; s=arc-20160816; b=IisqqBcyoy/BgoDX0+oGcggnz6S6wIh2sVaDlJNRR5r750PQIrthY2p8NJpxgTG+y2 xcSf1ogM+HCcD4CLCp0nj1f0keMLnqalYn3uPGI1xdYKcEHjzi0JHeL2GdOXFbL1y8Ai W3RfGngjFAQv/yVk0RXIN09TPw2123q3LxzEHEzscYVo0RCknDnumFH5GVrwM00hkC5S JQ5nlNje/lNYR7A2NqkOxERrc7+EvxxY9ReDsd/1oXhfioUsnI5u6QSN+2bSgR18y0CH nYECOuO5TS+OfwBAuB3UMtSwA38frS+4Pj/mccRufotcqzZZ5NAPk7rZFUdMn3D0vzAt x2VQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=vGLrIukY07gRATQZHyZ1+a4Hq4EsEQk1eM1dMM8MSpQ=; b=UyWIc5AcMWKQ5XBS752+a9ayNzgs0vbMzqDgZqboanSggJpUbWogxxTf0zMSVf2YJb NLhEMfWMkhWxZY0dAdCW7xfCKuEESLNXzOtDNG1iKMZmZWZ+nEBRRh/7iGpbOf50mbGl c0lHcN+cvlAKBpehJIi/+rBeb4HpXV3He3nzIho2ZVa/WyILMHUEG+q4epG8RI14jRFz /i9yYl/AKxltk8z6dv5CFadoFy6hEKgkKUYWVzOB1p3W2M7aeTZc4jxmgw119nX/qzCh RwBdp7HuAvxT1Vc2v535vcstU4xrvutVHziLERztaRLV9hUKGbKvgcy4uzocDsmqDfNQ 3ktQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=rzar7c0S; 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 o69si6139741pfi.157.2018.04.05.07.07.48; Thu, 05 Apr 2018 07:08:03 -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; dkim=fail header.i=@nbd.name header.s=20160729 header.b=rzar7c0S; 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 S1751404AbeDEOGB (ORCPT + 99 others); Thu, 5 Apr 2018 10:06:01 -0400 Received: from nbd.name ([46.4.11.11]:33306 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751179AbeDEOF7 (ORCPT ); Thu, 5 Apr 2018 10:05:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vGLrIukY07gRATQZHyZ1+a4Hq4EsEQk1eM1dMM8MSpQ=; b=rzar7c0SKRxYZLIDjnKZ/JStUy zpA7U6xJKHx1N/KfMDH3YNMEdS9LNFMPTq/sApDRtF4o8Uxj0EF4BS6cFGjbFV0pnNzkRiskC8U6A jC50wd6B2FuAz7tOZYUu+VVCdQrQEbtUa9q2sAHhjQcFw5oTeiB5XSF/y4d86WAqeink=; Subject: Re: [PATCH 00/12] Ethernet: Add and use ether__addr globals To: Joe Perches , 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 References: <1522936292.11185.15.camel@perches.com> From: Felix Fietkau Openpgp: preference=signencrypt Message-ID: <999e4ee7-2e4e-6bf9-ac76-209e259c83e4@nbd.name> Date: Thu, 5 Apr 2018 16:05:51 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1522936292.11185.15.camel@perches.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-04-05 15:51, Joe Perches wrote: >> 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. Please post some numbers to show this. By the way, on other architectures the numbers will probably be different, especially on ARM/MIPS. >> 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. Those two are just memset calls, alignment does not matter. - Felix