Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp172365rwb; Tue, 25 Jul 2023 13:54:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlFvZ0RZD/lQ7BRHnm0kRaikpAWhnhXK0NH88DoDsDRFZ7OKW8A+OXZFsOimxdy1V84CyIc7 X-Received: by 2002:a05:6a00:244a:b0:67a:6ba0:3a6 with SMTP id d10-20020a056a00244a00b0067a6ba003a6mr286242pfj.21.1690318466659; Tue, 25 Jul 2023 13:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690318466; cv=none; d=google.com; s=arc-20160816; b=v2Q2Z2wUq71YPh/7JJyyKsGDYMKCYU+xkWU50gExr6dFIDM9HGFic64kzHo0LJECBm 2HtUuNH+yjgxQVqddHLyIy7wORsld7bIm2l+gt1UGqROZ3+Ly2g4korcgZYPkLaSg14Z 8RtWqtsPNS4VMluf47G5RR7NHJ6KyYlVoe5wXvsWzZr1y+gQC/lX3QI8BhLuaPvn/SBB R4u8inCjgiS899h3Fpp+VOLOwR/WehtfHtAlCkkUPqgpW/75rXPeyG3xGwtQu9CK/UnZ gikhDWRDNcL/eexBXS7/KfAhUQGHqhbXHkUQozfrP9G/XB65mSsxfyHD/5jTKpDZIPjD RVNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=za3mSnmYbr5Vnxd+8OQOza/6YO1UkcBgVZ/nw5zjFf0=; fh=OBHPADF6yP4yNu75/ccLAn4NM36Pdl/6qi/eHwosYHY=; b=OKaImi3sZGIEfDWXzrzc4VehtqDNJyfPDGb8ooVvjMGRUsDU0sW+hDVU9SutuR1Aqt E41i56QThulsqfAHrXkEOYEZdd14a0zkwDQkjwWJvcSQrdovoZvTpDg/XZf1xHpmWMh6 1f7fe0rk8wdp42odzpre3Z6VCG6h2+iCS8qO9RLVl/ICl2534RLFqySZ6P2BGumDItw/ GJZ3fQpySI+q6ygkCFp63YJwFSe9Y+7U+J96qrs6E/nX4bWE6iAxJhvbBLxOwEdfDrZt rOw9KQJsao07zmDn6tdOmrWFTbiDIlMJVlJJudfTvZMFxscdL5FYBgDbDVQp0FikyCT9 2LEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=gUv3ZGzW; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=mZbvVjhu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t16-20020a056a00139000b00665dfbf3b1esi11983744pfg.270.2023.07.25.13.54.13; Tue, 25 Jul 2023 13:54:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=gUv3ZGzW; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=mZbvVjhu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229678AbjGYU2D (ORCPT + 99 others); Tue, 25 Jul 2023 16:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230205AbjGYU2A (ORCPT ); Tue, 25 Jul 2023 16:28:00 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C1F910F7; Tue, 25 Jul 2023 13:27:58 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 7F84F320090A; Tue, 25 Jul 2023 16:27:53 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Tue, 25 Jul 2023 16:27:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1690316873; x=1690403273; bh=za3mSnmYbr5Vnxd+8OQOza/6YO1UkcBgVZ/ nw5zjFf0=; b=gUv3ZGzWiEACvhk9H2JVkhbcDQzc7XHyBi2UFpooefyveVMr+iH j4ZFZFCCHWvPzpyKW/JlvVHNdCDeMseTtDdDX4mmSPOJPwA4xWfsuN7neVlLl9n5 avKHp0zsz5ZZBhv3RgUk3Z2QwOBBuHQCzsKQYrADbCqsRdjMK4X1/gsB9u1JVBqy 0Li0eQ8fSqHDguCR3uACAV0lbEb3CZpljskYNu9v+69v2OpJ7rjKz2Ap6+bGCWxZ 3ejFwgQuYkypKeWPO3uubxF5O079vRN0nlDBOxj1mOikNhBmdUnyPIidqTmEo7iU kG73tSGuhlDW92A/LO5dNGEsM6MonMaerpA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1690316873; x=1690403273; bh=za3mSnmYbr5Vnxd+8OQOza/6YO1UkcBgVZ/ nw5zjFf0=; b=mZbvVjhuG8A6WVYwLWtM0oOdNXz/Po6kitjw/sjcnMyaddR17kS 82fwTCmu6mwq8shI+HTyrzZ++7tsz2NXSkM8uEXOTEG8KOh/JLmIZJRY59fbdgBV HguwC7R6PPlEeCXFXxGzXCdqsc/4FOpyYvapKe2KYdI0S3XHzs+q8AI5A7S9/zsr oT+MD93z8VMIHdjt1YUCBxfltA4PldUqaVqf9WcXyQEsl2LFcNvv72JkQLOrIbz+ dnS2WnQHZ9/7FPN/S9Mjo2xz4l2i5hM91+IUvd56VSPT92a5mJOJ/yVIYQU069rU xO9IenpuaHP9XdSmSlA7DELd5MeySNAgtoQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedriedtgddugeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 70774B60089; Tue, 25 Jul 2023 16:27:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-592-ga9d4a09b4b-fm-defalarms-20230725.001-ga9d4a09b Mime-Version: 1.0 Message-Id: <49e860d2-941c-4e66-90af-d9fb7ddcd401@app.fastmail.com> In-Reply-To: References: <20230722074753.568696-1-arnd@kernel.org> <679d8d63-ce92-4294-8620-e98c82365b2c@app.fastmail.com> <39444a4e-70da-4d17-a40a-b51e05236d23@app.fastmail.com> <3e202277-fe74-4105-93ec-b646efaaa956@app.fastmail.com> Date: Tue, 25 Jul 2023 22:27:31 +0200 From: "Arnd Bergmann" To: "Alexei Starovoitov" Cc: "Arnd Bergmann" , "Yafang Shao" , "Alexei Starovoitov" , "Daniel Borkmann" , "Andrii Nakryiko" , "Hou Tao" , "Martin KaFai Lau" , "Song Liu" , "Yonghong Song" , "John Fastabend" , "KP Singh" , "Stanislav Fomichev" , "Hao Luo" , "Jiri Olsa" , "Kumar Kartikeya Dwivedi" , bpf , LKML Subject: Re: [PATCH] bpf: force inc_active()/dec_active() to be inline functions Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 25, 2023, at 20:15, Alexei Starovoitov wrote: > On Mon, Jul 24, 2023 at 1:41=E2=80=AFPM Arnd Bergmann = wrote: >> >> Sure, that's fine. Between this and the two suggestions I had >> (__always_inline or passing the flags from inc_active as a >> return code), I don't have a strong preference, so pick whichever >> you like. > > I think: > static void dec_active(struct bpf_mem_cache *c, unsigned long *flags) > is cleaner. > Could you send a patch? Ok, done, Arnd