Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp110173pxb; Tue, 21 Sep 2021 20:23:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW0GI604aS41/P/wQx/da1gd1JkR2lGwbVN1JAyhn5zFqJVxEIOP77JJMCiFjf28AY8ckr X-Received: by 2002:a17:906:1d41:: with SMTP id o1mr38356573ejh.232.1632281000333; Tue, 21 Sep 2021 20:23:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632281000; cv=none; d=google.com; s=arc-20160816; b=ig3B2PXMudguiSgc8zw8EV68ie8GmO9FD6Sqk/7GV++BR3vunolWFAYxVpOFFGo3ZX WlfaBGJPNfZia7EOvaUHNye2PHMDSnZvwS95aqlNpV273Ejdp565dp654MqpTRT/hYZB GtpYL3waMfvP7pxzXdllHQZ+sIrpnnFnhy7YLXC5lUSvDd1A5QHrUNnUa3Sl8oJMdoQi TB0Ic+rZGguVDV0uMMyHOBOngI4jtECWpFnfEDVvixoQg885SZ0rox0kJ8DVvNLHZdRF ik4KpQ5jQrPrhvIQzx2nQljqHn96IQiRsoZWaWhL4GoqvdHXRxxYs+A5AseWDUHp7vrI njcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=ZCZQpd8d/kjTTvQT1lCNL4kw8IYVQK9XcOkt/6XBBi0=; b=rbr7INryP8Wk8UY3rw7HLAzIHMolm3QTnX/0xYueJDlzmX6Fc0gMWCZOEQSdqowQ8A 5KjAPnEo89KYSvF5rHe4Qs5E4kgr7MfGUFs0ZZcPBwjZltHI391K7RlMvM4LdNgs8fU/ UiAdoKl2J5Te70/fiynzEyfvIJKuudrKF0AlrzWSZTr6L2TNOSVotABnDSXvTIQHYVwc F7spgw+hXvVfVsSKJc9AVYL88UUZqnTHjc/f0v5hy+Lu7+7HSGJIT7l4TNffWL+TuI43 MywEPFuoZn6XntvoCogBChMlEUJvsGRoYEltAz7OAuBUB/EejkiMnT+qJLU6tm85iUCF JABg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=CfhujFUk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp6si1166164ejc.384.2021.09.21.20.22.56; Tue, 21 Sep 2021 20:23:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=CfhujFUk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230488AbhIVDXH (ORCPT + 99 others); Tue, 21 Sep 2021 23:23:07 -0400 Received: from linux.microsoft.com ([13.77.154.182]:58006 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbhIVDXG (ORCPT ); Tue, 21 Sep 2021 23:23:06 -0400 Received: by linux.microsoft.com (Postfix, from userid 1095) id 230F02089D9C; Tue, 21 Sep 2021 20:21:37 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 230F02089D9C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1632280897; bh=ZCZQpd8d/kjTTvQT1lCNL4kw8IYVQK9XcOkt/6XBBi0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CfhujFUkuORWBe0dLW370hKNJFhwIH5LZ924mupde1a62hAqEK+YEoxUIL+j+48ra ZtB0zTCClR3piKQvxov3OuLT/6/gFqpLasp3lRpN4EIfdEcKIh/utmE1+VE6SW/9j2 rwpFfMD9J3Sl40GoKedIckciGJaDe89DLcjCiK0k= Date: Tue, 21 Sep 2021 20:21:37 -0700 From: Muhammad Falak Wani To: Andrii Nakryiko Cc: Muhammad Falak R Wani , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Networking , bpf , open list Subject: Re: [PATCH] libbpf: Use sysconf to simplify libbpf_num_possible_cpus Message-ID: <20210922032137.GA19826@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20210921060434.26732-1-falakreyaz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > "This patch is a part ([0]) of libbpf-1.0 milestone. > > [0] Closes: https://github.com/libbpf/libbpf/issue/383 > > Please update in the next revision. Sure, will send in a V2 of the patch. > > > Also, keep in mind that we ask to use "[PATCH bpf-next]" prefix when > submitting patches against the bpf-next kernel tree. It makes the > intent clear and our BPF CI system knows which tree to test against. > Thanks. > Apologies, duly noted for subsequent patches. > I'd say it's still a good idea for explicitness and to show that we > didn't forget about it :) Plus, if it actually ever fails, we don't > want to WRITE_ONCE() here, so please follow the same error handling > logic as it was previously with parse_cpu_mask_file. > > > > > WRITE_ONCE(cpus, tmp_cpus); > > return tmp_cpus; Sure, will adhere to the coding style. Thank you for your reivew. -mfrw