Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6050576ybp; Tue, 8 Oct 2019 12:14:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxizwIeFJEeVGXRFQSEB+vtgbN+nrTteHPwmKCzv4/KnU3FuxsgSSzMj+JY6KV/2ARMIoSG X-Received: by 2002:aa7:dad9:: with SMTP id x25mr35678069eds.7.1570562042721; Tue, 08 Oct 2019 12:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570562042; cv=none; d=google.com; s=arc-20160816; b=u61vegroHFjvLG8aLM17JxNe2EWq+FP7UDXQYrRLDsL2YWxiwq4QRdgj9rCrJvq3Yv GKB97hoI4dYQxpNruUXRuV3eTlsfokX/HE2gxAHJkQX5fqg0hNm8bNNIUcHP7/hlRRvt mMiNipmXKA/HirUhS/DrBNBTRuys27dXzkjd+KJXFi/A6zPf3dDDDngyzWCK7drFV4wq cKo4VbIm8sEyOeizxXG2woh4gclGizD6wRoIs6pfecdsxjiVwH3Too0mGz+yeZMpjpSl hgLz1FZR/yw7ff21vDGuZvOSDq3i8j9X+PRvOtuSEMGvDr3AHFQcDTBxRetUNK+P3bgs iM+A== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=B9rf+VBuWjx1PPlnlyQtG5L/QPp7gUPZolyg4GuyibI=; b=m1nFbamYmF2afh1rU4Q2ytwTIUgt9qBmE3D7R/ftBc6nXHX0k7O7xE3kjFtyhl1Qnl YVni3BMEifOlvspJO9pa9QRjPyWKqgX/yvk6zfRC0NapwJzT9ivmQMs4L36k74ZL35nb BBEm9T/TAGFo3rZEKPNEkbhXrH0B2gXYWloFfwutgfuRGB7KBve7gY4PsTDQIg8J5XNi 7Pcfl7i7EQFhJKFlnLOjDWNM1t/kDzt3PAdpPOd2pZ2RZpSnnxQcPu5q/Alk/qXg+68p lH+7EzrWDKeSRX43jIOf9JfQQB7v1KcqCOdo+8GdXYNSc44MzPYfsvZcSGv44rlochU7 XQ5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=LOXRHIcZ; 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 cw1si10289303ejb.117.2019.10.08.12.13.37; Tue, 08 Oct 2019 12:14:02 -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=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=LOXRHIcZ; 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 S1729841AbfJHTNW (ORCPT + 99 others); Tue, 8 Oct 2019 15:13:22 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:33644 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727220AbfJHTNW (ORCPT ); Tue, 8 Oct 2019 15:13:22 -0400 Received: by mail-qt1-f196.google.com with SMTP id r5so26974242qtd.0 for ; Tue, 08 Oct 2019 12:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=B9rf+VBuWjx1PPlnlyQtG5L/QPp7gUPZolyg4GuyibI=; b=LOXRHIcZeA6ePEYLSqol3MkRA+IsiTAYOlNbx58hWKKoEQD9iUJEttMhPRV+DkYrJk 8fNZOXJxUvymRqrDYBLAcZbRqKDzhPncxFmN29JojvA/J7CKicUtq8537UO3cgclRY+7 XYZfdLow19wUcwG1UarnuVql5wgbRYO9i5uie8nERCIJ7gsXrfHe/fmQHyCgrCy0Kha2 yu3GCGW7hn81vC8O7h/hyLo17hevn6ehYVjhqi2Lk1FfMSTjX8OMw1D+Gc64RNuIMnm1 AaZW9UqaFoah6rkyRNMS1x7tt720Z5ImScaUBTCKvS9TShc88MvcmcnQ1tq9U3GWLkxw UPAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=B9rf+VBuWjx1PPlnlyQtG5L/QPp7gUPZolyg4GuyibI=; b=szzuF4OoviTw3Ra/hdlRP243hyumcw8+WHqeInA4NMUSnC2KhUyMA9KqrW/FZTwUBV Fhtik1IFJ8DIMelBf4dyRb2Qg46u9m0Zuzafi/ncP01wdKcTio8P+0v9+M1MCHdXnuYL c8oJUp5SXWKdhccZtSYaVnE/s6UGnOBYAeKow4oAntbB9fmEXa/x50cqws1D8eV2ygzO TI280aIDA0hkSkMZ5H1Zgoz6L22VOxa3SWobBJHS91NfRsYFh+mX2JAXzUQIv7pWq+Ns eXfON5I6HVmoZEQWT1CBP6yarhb1AeGBP3wC4lwbAYyHw/4t3VAP4TZPw+1P4iUeWT5T 5Nww== X-Gm-Message-State: APjAAAXHCalale+cenT2L2MjvCHBguEVd9OnIkn8kyuoDEx8BE4h3dxs gBdYNB5zGGvh0j0mKvt/38nNmw== X-Received: by 2002:a05:6214:2e4:: with SMTP id h4mr35227322qvu.127.1570561999863; Tue, 08 Oct 2019 12:13:19 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id z46sm12187717qth.62.2019.10.08.12.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2019 12:13:19 -0700 (PDT) Date: Tue, 8 Oct 2019 12:13:08 -0700 From: Jakub Kicinski To: Colin King Cc: "David S . Miller" , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , netdev@vger.kernel.org, bpf@vger.kernel.org, oss-drivers@netronome.com, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nfp: bpf: make array exp_mask static, makes object smaller Message-ID: <20191008121308.121c2748@cakuba.netronome.com> In-Reply-To: <20191007115239.1742-1-colin.king@canonical.com> References: <20191007115239.1742-1-colin.king@canonical.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Oct 2019 12:52:39 +0100, Colin King wrote: > From: Colin Ian King > > Don't populate the array exp_mask on the stack but instead make it > static. Makes the object code smaller by 224 bytes. > > Before: > text data bss dec hex filename > 77832 2290 0 80122 138fa ethernet/netronome/nfp/bpf/jit.o > > After: > text data bss dec hex filename > 77544 2354 0 79898 1381a ethernet/netronome/nfp/bpf/jit.o > > (gcc version 9.2.1, amd64) > > Signed-off-by: Colin Ian King Applied to net-next, thanks.