Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4476320ybp; Mon, 7 Oct 2019 09:01:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ241ZqaUSi4LmGtkDSFvVcs6TyTi+KkS5sx0JGfog1wejKBhPp+ZDr4F2ZhrF2mllRsjf X-Received: by 2002:a17:906:6010:: with SMTP id o16mr18704392ejj.191.1570464079083; Mon, 07 Oct 2019 09:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570464079; cv=none; d=google.com; s=arc-20160816; b=HbGolp90+xYC1WNZEIKCSC6jNrAIY6XwkEJwEOyJcuqrsQk2lZAAaRGoIpwEfKzoDO 4xqekq1jS4PBGFN6zOnVy00yS8Ksx/ucAjv8GfxnUPrJlLMJxdB32DeO35MycsYn3pYn LgUx5EldQVa7EeVMgvjNdzKUX1S7mvRYpacO72XlJaVvjgYszRrMpEU3K412D1QJWI5g g2DzwyIqssi0sLdtqd9nkh9G4jCF9XkKWeYHaNT6ADcRybbpDr6fzQm5BzB8BmNKAZTp d8k+GcOjoAyzYfP+ZZBoYycGw/CuQcSIbbYuD/8bfjDeoSCZUYw9ByiI1O1QT56SDTg9 GIuQ== 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=Q7rtzjnFJDzgl/cFLK/ImgYohSqUsKxMtww2iZ3LFxI=; b=eUluShcztbp0RmyTXcBGzVwLxL3WJ8T97/bMoZUzKf06X4tChSAeDFd98vPHSahhM6 H/9b+3Qz166Vc7OPXKGKciEO3CEjk87c0WWJcslya55QBV2bdlzuU3i6PAekPqu8FjSt jrMevOuA7Xh11Y8XkyaruT8gWD/8fXytrxtQAyur0LTfaquhiH885ZIQ/7fFSZYi0wV5 KuPRDAlYmHafAXok9pteZPn6ATY0bQWie/9ltjmyg7n/IceToPmMdmgiXhGZQ16gL3QC NMFyM8oXcQUx/YMIeeex+68OYNIghyIf2Q4000SW7BOWAa6d/AKkclrc5FLuQ03rBgeC /Z4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=L2UEzrQN; 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 si30si7332116ejb.92.2019.10.07.09.00.55; Mon, 07 Oct 2019 09:01:19 -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=L2UEzrQN; 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 S1728352AbfJGP6h (ORCPT + 99 others); Mon, 7 Oct 2019 11:58:37 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39520 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727791AbfJGP6f (ORCPT ); Mon, 7 Oct 2019 11:58:35 -0400 Received: by mail-pg1-f196.google.com with SMTP id e1so8474984pgj.6 for ; Mon, 07 Oct 2019 08:58:34 -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=Q7rtzjnFJDzgl/cFLK/ImgYohSqUsKxMtww2iZ3LFxI=; b=L2UEzrQNyW4qR/63zw8zkgy4pyfPvUqJc191PUYuwqqFBzcRgHsTNjOtcz6sShZIPb dA/SN5iqkK380QeTr1TMQyMEyXWItFVoOPj0BTJNHvHvuYLm8lwTdbOSUuFCTyIH59hE pzW6qE93mQZcysE7SxfrOnzobpeM0RpPQZ9ky1GwjbHD6Kd1PNsjg2bdQ46qNOywYScA hRSrZvH5pu1GKgAXwZ2wpS+5O5gmxXTtnvm6JIiCE+/vjMomuawzyr7sRW5LQh9nYmYF 2X+6u2WLm9hpqjydnIc+4dnn/LIoudKifm2BFrmEQJ8LHa46ej0iFH/IjS8BvBCylDv5 4zkA== 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=Q7rtzjnFJDzgl/cFLK/ImgYohSqUsKxMtww2iZ3LFxI=; b=QMIF0tbz6XFWavEQDauBk0lnMSveSZmNv49OPyGsJQ0a3OcQQujR0Q94/op0nkoHr4 r2wglDI/k8eaa1ScWaIQ+2UklwBzLf7OjTaRIg7lhpYP6MVXZy9e2B2q9iXt5sbVgGyZ xmcKKMWE5t2VfgtInkLD696Qo1yS/Mc8hIEu3dKZQboTCHwk7NWrUMHf91Xls/KA6P80 TxI9EsTRmagTBXymhW5XR2NRHPo64NwFg6ynoY66/uWHHTdWkUHoiQ18OQ1drSys/4Vl itUlVxDEl3Ukte7ZrotHoBtdLQymOVm8je637nC5Dpyz+BZtyB4ig4dnSjMITW7Gifj1 uXag== X-Gm-Message-State: APjAAAXF71TPECk+o5/mNvPBdr7MdAbG5vh0r9t7OPV2hGxT9G4k+Im4 1gw0YIe0OWQAqzVNgUDAITgP7w== X-Received: by 2002:a63:f915:: with SMTP id h21mr31135096pgi.269.1570463914153; Mon, 07 Oct 2019 08:58:34 -0700 (PDT) Received: from cakuba.netronome.com (c-73-202-202-92.hsd1.ca.comcast.net. [73.202.202.92]) by smtp.gmail.com with ESMTPSA id y2sm17266224pfe.126.2019.10.07.08.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 08:58:33 -0700 (PDT) Date: Mon, 7 Oct 2019 08:58:24 -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: <20191007085824.64c89788@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 Acked-by: Jakub Kicinski