From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C05E3EB64DD for ; Tue, 25 Jul 2023 20:28:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230323AbjGYU2E (ORCPT ); Tue, 25 Jul 2023 16:28:04 -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 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