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 5B04AC77B7A for ; Wed, 31 May 2023 15:44:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234870AbjEaPoE (ORCPT ); Wed, 31 May 2023 11:44:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234800AbjEaPny (ORCPT ); Wed, 31 May 2023 11:43:54 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E23B12E; Wed, 31 May 2023 08:43:48 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-5689335d2b6so38950167b3.3; Wed, 31 May 2023 08:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685547828; x=1688139828; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=7KHwUydY+5zoS1848/zD6XL7je/tk9XrUsLE3UP54E8=; b=nKeihe+KQntJ2aHbe/LB66GoLLSJjdinttWW5cPlEHIrchO1LZkFH7hO5RGBYnVDh7 lWZwS4EbpqWQux8cFgmXz+nZdhZRose8bWa82rhReNfmKGgizuxV3FAmmWF9NngprLZC aAV/9tpDlaTaJBLWldna5OPEN86vAoNiVLl1ufK3pJ38ZhFbtqbHmp8cx/SPiqwpMn1l uQha1sX6IEixqC2rHoc8wXIZLyvnpOB33ae8KwBRzqmGlKVndJrvIIzAoVtuyBD/uA90 vdazQamE24W/6GiAuYxvqZcWvwWxcup3zXXhw+uP8qGvqqxMwuq4GCKlflUFMaQAD/na NjWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685547828; x=1688139828; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7KHwUydY+5zoS1848/zD6XL7je/tk9XrUsLE3UP54E8=; b=iOYyK0at3OrdfSahhLsO2uGG6sdZcfQvin/Xosb1qrzdXHC0MLY7dLZ+rG5kH1Ox0S OvgJAl+wbXgstfufdpMIo0YGEp3rA76Sv60hXErcmSbImfVz5NS7eGySKb3TfjQKznkg fohZAHxwnaNvhWKkQKx5JbryLX4fADK1Dvx8DfXPmPk0x1d/aefZXKEkgRgljPNe42g1 MhKbHbEwKLmkTXBZpZpjpF3XN1YZ9qHNDIJA3SPSJx00rp8lSTqWT4T/Ewme4Pb+gh7q ENbT7ata0wgmpvOdV40O0GX8N/SQqXmtE19S8WYvRvGAUfAxiF2AvpmH6VRXc6qJYjrb ewyg== X-Gm-Message-State: AC+VfDw2k5hCAPwQ/C1QFEPDB8AvkBFgQ8p2aNIimjJZSec+1ZxcMT+v MN8O7eu6xECrgUG7XLE50wM= X-Google-Smtp-Source: ACHHUZ7T7XA+lEzMzdwLBHp1uaXoX/tLHf43qXSnLsFppT7I1XsQnulfFw9oacGR57nUycbK+LzjNA== X-Received: by 2002:a0d:d412:0:b0:55a:5dce:aa19 with SMTP id w18-20020a0dd412000000b0055a5dceaa19mr5139747ywd.51.1685547827699; Wed, 31 May 2023 08:43:47 -0700 (PDT) Received: from localhost (128-092-077-170.biz.spectrum.com. [128.92.77.170]) by smtp.gmail.com with ESMTPSA id n5-20020a819c45000000b00545a081847fsm5453436ywa.15.2023.05.31.08.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 08:43:47 -0700 (PDT) Date: Wed, 31 May 2023 08:43:46 -0700 From: Yury Norov To: Jakub Kicinski , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Saeed Mahameed , Pawel Chmielewski , Leon Romanovsky , "David S. Miller" , Eric Dumazet , Paolo Abeni , Andy Shevchenko , Rasmus Villemoes , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Tariq Toukan , Gal Pressman , Greg Kroah-Hartman , Heiko Carstens , Barry Song Subject: Re: [PATCH v2 0/8] sched/topology: add for_each_numa_cpu() macro Message-ID: References: <20230430171809.124686-1-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230430171809.124686-1-yury.norov@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Sun, Apr 30, 2023 at 10:18:01AM -0700, Yury Norov wrote: > for_each_cpu() is widely used in kernel, and it's beneficial to create > a NUMA-aware version of the macro. > > Recently added for_each_numa_hop_mask() works, but switching existing > codebase to it is not an easy process. > > This series adds for_each_numa_cpu(), which is designed to be similar to > the for_each_cpu(). It allows to convert existing code to NUMA-aware as > simple as adding a hop iterator variable and passing it inside new macro. > for_each_numa_cpu() takes care of the rest. Hi Jakub, Now that the series reviewed, can you consider taking it in sched tree? Thanks, Yury