Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3637305rwn; Sat, 10 Sep 2022 16:53:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR413XIkYbm1FB6G1FNtZFG4axeP1hGU8lUWYsOjeS7Hi1bLXqQ03KLFueLxaN2eBUQ8+I6d X-Received: by 2002:a17:907:a40e:b0:779:d3e1:3413 with SMTP id sg14-20020a170907a40e00b00779d3e13413mr6533959ejc.642.1662854002426; Sat, 10 Sep 2022 16:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662854002; cv=none; d=google.com; s=arc-20160816; b=y7suVcSwBBblCRZgozU+EafO3Mj48VJdT0+Vb5n+14xCgi0HPJxhqDrGSdpCj1VFcb ZQiB0Pb3pnV7XDUuIavsjIlpKTaUpAOL1yOeY1X9mp6lbvCWlH3BboJDDgGtdNShyZ4b ofziMumEKAEWuUeJXCVjO4yekpgf9P3QC6coEjxR3M2WmR36BnOBUMMsxv0E8cS43juY RDdedEahyrZc7nSAqxnumBPDYyaz0mDRwM29em6Wf3hx1GrM8Yj7bXeZjj2ry7aTxjjc aOEHds2FC+4klidhiF97wvvDgmORAq+uWc0hBWr2JB0YC+IqygAI4EyOJD1koW1PK4XE g5NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=rSSvOwwj4+vKZ8sX14pdcvyMFmWekU7mmNYzcPRrM/c=; b=WApl1HXK0RfUlrr7LIi/MBXwCttxStGJ8VhDDUOiJfU8/irPoo1DbAQJ6NvJgOVcmN hs0wNx3ZFx7qFp6+JSiI0Wcgmc7IlSWlmyFFwHPbcUziuRH9T32wDwQCMPSFlgdrj0wI xPF0l2z45AsiY1T3k/QtgJTJvsbvXZ47hWV8vr616v178NFW9fnLlZwGT02yWDVtoi8d iI9g6NPwFO0kgp3IAXslqBjYpf4CAeKg6nG4wbZ2QQAdlqB+xCvdKhDppqNHZqs4q5DW QErRGZ4d9r1+xxPoEbIfi+GCKURYEmMqFvRuXa7+Ah/ANnmwil7bf7/FdyVZPS9+Jy8e 2MIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NLgjzhOC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa4-20020a1709076d0400b007309efc29a4si3665417ejc.691.2022.09.10.16.52.57; Sat, 10 Sep 2022 16:53:22 -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=@kernel.org header.s=k20201202 header.b=NLgjzhOC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229534AbiIJXaS (ORCPT + 99 others); Sat, 10 Sep 2022 19:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbiIJXaR (ORCPT ); Sat, 10 Sep 2022 19:30:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7622625289; Sat, 10 Sep 2022 16:30:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9E0760EC3; Sat, 10 Sep 2022 23:30:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 08B9CC433C1; Sat, 10 Sep 2022 23:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662852615; bh=Hwnu5nbdpFcMVDv71MVzoGlnzgKF2elcFcTIZVTNRFo=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=NLgjzhOCSqviRtfn0B2xhXNDvQB6mcj4CdcsGA13FTa7VxwaqOpktpGHTxDSW0NsA vGCJJ3DSwyMLd7mRTEg0o3lJYN8KkdJCfiMtuGUmtplAYkdPlr60Nb1tff9l2fDBRt diIaRobNU7yVxeQ5RNLai9+WDsxgYaQfO83pD2FiDB6KMJmoGjARg+IesRQO0eo8Qh TFMtKOF5HewfVjn3n3Po/PwHK9Ua/HQe2hM9hCHEYScBB36Jj+Nng2V789XqmqX95+ 5H2ThEFG4vwfTrIF5/eUeFZu4RweOxvG/HC8nlZDOtDXCTAHviYeRTwwAQUeRkgg+9 XWH2i+O/mHk8w== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id DE931E1CABE; Sat, 10 Sep 2022 23:30:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2] bpf: Simplify code by using for_each_cpu_wrap() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <166285261490.22663.16792763568824873547.git-patchwork-notify@kernel.org> Date: Sat, 10 Sep 2022 23:30:14 +0000 References: <20220907155746.1750329-1-punit.agrawal@bytedance.com> In-Reply-To: <20220907155746.1750329-1-punit.agrawal@bytedance.com> To: Punit Agrawal Cc: ast@kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, zhoufeng.zf@bytedance.com, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, jolsa@kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello: This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov : On Wed, 7 Sep 2022 16:57:46 +0100 you wrote: > In the percpu freelist code, it is a common pattern to iterate over > the possible CPUs mask starting with the current CPU. The pattern is > implemented using a hand rolled while loop with the loop variable > increment being open-coded. > > Simplify the code by using for_each_cpu_wrap() helper to iterate over > the possible cpus starting with the current CPU. As a result, some of > the special-casing in the loop also gets simplified. > > [...] Here is the summary with links: - [v2] bpf: Simplify code by using for_each_cpu_wrap() https://git.kernel.org/bpf/bpf-next/c/57c92f11a215 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html