Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1150013rwd; Wed, 31 May 2023 10:03:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ARxCxSIEVIGqejwDOqex8sFFuxD9kNtuA5AwtD6s+U9PnIAldPXGd7EQpq749NEE46lAV X-Received: by 2002:a05:6a20:3c8d:b0:100:5082:611d with SMTP id b13-20020a056a203c8d00b001005082611dmr6012338pzj.32.1685552613975; Wed, 31 May 2023 10:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685552613; cv=none; d=google.com; s=arc-20160816; b=ZPtTlXJvC9SGdgCSLZ6MEOVY2gwr2hrWPPyLWzPYlGMTp1/adTB4ezkTK2X2WUi4Hl MUVa63MNsa4LEVketEesvUgJFz/tuf3+g/w99lc7WS6b9l6PPpo9pgo80FZmdVwf076+ N1YOURS25wsM9lh80ezyYt4JvZUtu57Rv9GzRJI15rZX8nMgzWypls1Irwo+DceJKoEh KQqZHxjvD2kUc4yiOW3kaZWlCwjjjFn++oHOJTclvp42T+Q7zK11TEc6wgPY4U1cEISd 0FzjMoPXsjqQBpe3Rz18gPrJW1inN/wqH79L/aVrHW+1PZAdZlTh6jITUJtFTy0IJXmk YV5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=3q0kcNG8EdFDfebpB3BcstckN6SyfwaqTDeogDW9dbw=; b=CwiegrcVfrr47V/0zEaxP7DPU3jNT0vxrVWxvr0eTdZqSuQy3EqB7ZHBPq//StCGP6 cXypy4Qeofb5fNq4GONZXU2pV52T52HnABrl+J7bNpuflCs4SMPd34tuWrvzgZjVV4+J PJlBO8sloxToTmRr36Ag4BtGXSRkkE+eNgTGSS0it0vC8Rb5LUzLxkbxuAxiTrJaHhcz jc+pjeL6GQfKly2cTAX9oedasKGSP7gRx9MabA0GMv63HUfB30pfpvsVuJOmSApw+woh kIDhfw1zig38FvVwsaMGHLVLz8LD4AlGc3GVcyE9e+6WsZzT50KARoGOpvaAkJRtfT5z qZ7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nzXesSLu; 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 bk13-20020a056a02028d00b0052c575f1d8dsi1283235pgb.260.2023.05.31.10.03.21; Wed, 31 May 2023 10:03:33 -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=nzXesSLu; 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 S229717AbjEaRBb (ORCPT + 99 others); Wed, 31 May 2023 13:01:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjEaRB3 (ORCPT ); Wed, 31 May 2023 13:01:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7896135; Wed, 31 May 2023 10:01:28 -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 3B6B16347E; Wed, 31 May 2023 17:01:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84E64C433EF; Wed, 31 May 2023 17:01:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685552487; bh=R7oOfdc1inXuLFb7cvDfmpI9BDI+dIPISRXuyEXNPvI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nzXesSLuaVO21WqMnqz6lZZkzoywNGhofB7+9w1885IbEkRQVdEWM4KHKSlR5VeUh M1oBkZNiQGdN1h8nckTf1NxFC3vEjGc6N32U6OdnysH2ezKUhvfU9dHAiWYQUxAxex WVTatdhX+KX4UwjwD/vqK4+X7h5HBPNS1RIxDrpnYQ/VJCIj3F/ohGcmWgMCB8Z0ap C/rkGpAIcR+Z2RmiacrR6Gpe6lS8JClUDWzQqMfOPfJoTnNVyZ5O6uWArZkmi3n+7K qHOB95TfohHPO3YPOggEcTQSlih2+d9rrUypXZhA2qeQ1Bpo+XPuXADSYesRboGN6O xrtRBlkZ4pY7Q== Date: Wed, 31 May 2023 10:01:25 -0700 From: Jakub Kicinski To: Yury Norov Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, 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: <20230531100125.39d73e1d@kernel.org> In-Reply-To: References: <20230430171809.124686-1-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.3 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 On Wed, 31 May 2023 08:43:46 -0700 Yury Norov wrote: > 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? Do you mean someone else or did you mean the net-next tree?