Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1055187iob; Fri, 13 May 2022 21:20:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhFdMpelYi7zyilCn51nrkg6cfdxGGhXau6BU+bFq1+SJvv085sbjFXHB0LO5QIQPB0joO X-Received: by 2002:a5d:4cc6:0:b0:20c:6b0b:b060 with SMTP id c6-20020a5d4cc6000000b0020c6b0bb060mr6271853wrt.50.1652502000140; Fri, 13 May 2022 21:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652502000; cv=none; d=google.com; s=arc-20160816; b=AxKiRztpKrslw4odP97UTuBtRjvz9wp8yualKuAAKzX+WHrfJnmaYfEm6Ghblf1gje Q+nzQV11rpb6Buj8nWGBKluhI5jt6i3Oaz2W2PbqlbHs4FRHBhwkIo+D2nTacYVLSVgI Dn7xMQF0bkl3nmEiTIfFLyFcEwxHGEdnzGFxhBvFnuQODIHQ9fxiphWznM4Z9KR45iQD ymYsGCXb70CLa+iV/xedbk9YrpKBIdbkoAOabjw3s0rZFJBrOb4uRt9i2iUuSuhKdPCs /nnry+cdkLNZ9ateCmokJFG+ahgJOzWxk7pMsmozrDdiBpGTHTcHtW4dFypma7Blk2bg 8B1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=EmKvGF9R+i7aWEMhIrO4PCQM4zbTBUGez1hn0xHgbIE=; b=eY+4laMjNvrvxjYe6D+K6LDWiYgVCtIRdiSAa4DaOSCX3aclQYjVpb4svsNfP8VvFi 4J5NxZ6Lq0+RfmUKLbdDFua2RoM6PVECTV3zq99vu8gg+6bgfH98E3pksy5pAAKLLuc+ gEkE8QMFZgrqxsFRZb+7iysLtrmQYibwsDc6IpivOuMdC8PjJC1qNQaNadtHSi24VA/K YarSOLUf38pzDYlewon8ZUGZwpnTpkvXNok6vSY5Pnaasj9EMvvISTs4AQU8N5WfKuOZ uBRPyz3lyLZznFfixLMzP3+0BnXYom8ZmsPGdkmgi0AcWh7Eh/SEChAY+1Ecrqne6OUE 5fXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f2-20020a5d64c2000000b0020c81add88bsi4963148wri.13.2022.05.13.21.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:20:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 40425341934; Fri, 13 May 2022 17:50:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381686AbiEMPC3 (ORCPT + 99 others); Fri, 13 May 2022 11:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381684AbiEMPBt (ORCPT ); Fri, 13 May 2022 11:01:49 -0400 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 160523ED17; Fri, 13 May 2022 08:01:43 -0700 (PDT) Received: from sslproxy06.your-server.de ([78.46.172.3]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1npWnL-000Cqj-Rq; Fri, 13 May 2022 17:01:31 +0200 Received: from [85.1.206.226] (helo=linux.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npWnL-0006OI-At; Fri, 13 May 2022 17:01:31 +0200 Subject: Re: [PATCH bpf-next v3 0/2] Introduce access remote cpu elem support in BPF percpu map To: Feng zhou , ast@kernel.org, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, rostedt@goodmis.org, mingo@redhat.com, jolsa@kernel.org, davemarchevsky@fb.com, joannekoong@fb.com, geliang.tang@suse.com Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, duanxiongchun@bytedance.com, songmuchun@bytedance.com, wangdongdong.6@bytedance.com, cong.wang@bytedance.com, zhouchengming@bytedance.com, yosryahmed@google.com References: <20220513063952.41794-1-zhoufeng.zf@bytedance.com> From: Daniel Borkmann Message-ID: Date: Fri, 13 May 2022 17:01:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20220513063952.41794-1-zhoufeng.zf@bytedance.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.5/26540/Fri May 13 10:03:59 2022) X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/13/22 8:39 AM, Feng zhou wrote: [...] > Changelog: > ---------- > v2->v3: Addressed comments from Andrii Nakryiko. > - use /* */ instead of // > - use libbpf_num_possible_cpus() instead of sysconf(_SC_NPROCESSORS_ONLN) > - use 8 bytes for value size > - fix memory leak > - use ASSERT_EQ instead of ASSERT_OK > - add bpf_loop to fetch values on each possible CPU > some details in here: > https://lore.kernel.org/lkml/20220511093854.411-1-zhoufeng.zf@bytedance.com/T/ The v2 of your series is already in bpf-next tree, please just send a relative diff for the selftest patch. https://lore.kernel.org/lkml/165231901346.29050.11394051230756915389.git-patchwork-notify@kernel.org/ Thanks, Daniel