Received: by 2002:a05:7208:20d2:b0:82:bbfa:f723 with SMTP id z18csp39231rbz; Tue, 7 May 2024 09:55:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4Y2brI7CCSu3BC1CiNqCb67NfNgpdzjaTqjfy6SirDHVPRYScfAAovPGGtZv2uHZJ4fpgCHCjR1VSsoiyCstBeIwJzm0fJbk3nDcAwg== X-Google-Smtp-Source: AGHT+IE0NjdooZ1VroO6ulFfQ4UivBkSfr1o4ssso4jXFEIQ3EOH8DVYw6B/nj2Z6ZIEzABkk9x8 X-Received: by 2002:a05:6a00:1386:b0:6f3:ee8a:19d5 with SMTP id d2e1a72fcca58-6f49c2799ffmr281887b3a.27.1715100957709; Tue, 07 May 2024 09:55:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715100957; cv=pass; d=google.com; s=arc-20160816; b=NZ5qWSSTl3WzY46ztn51G7G6F7SKpo/BmYdQ5dVV9hc7TKa+UkX4FS77atFFCsavvd PayxQwbWwf2HUTB52uph8ZXlntpQPSwJ7rTab1Cyh8kA1wUJjSNCQrZzm27mbYyKw3iO jsHuIWgDLsD5kxcYkG6Mth/sA6xvU0lszJ3scy9AKDy8YHxP/Ia/8GRQ/2SjXG1e6LSW rr6261erwu7z9/KcevHMjRXWucQJjHj9LzD2cLiEZnwFt7dOTRY4gbA8B6/Qk20jhyhF 48Qeq31AYl2k7uXwVgMddMIlTZZOHi0zwMP41JmnRa8qXyyIigVEKVwZnThbMMeC6rM9 /VcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Y7kvUe7PWA91hGpbQvQz1NQycujZOyxpl3+EQ8UjYU0=; fh=zn0jHxm4UBQ2Y/Wh0fJIFW38pBnzZTlql05qJqWAQX8=; b=ZnlnO/Bk91tpaqC/FFQfbX9Er8b8/3yVu0FXjFr9E7uzYP2KdSrrudP7vl1r3SzZAA N6CGgcOsmI9vpStB1SoMLbTrv7TJP2Sw1okpPSUDnjWdEwIpuzW3RKNvVZuqIpHys+FY UgyCD4rCk8ueiTwmprpts3h22D3uMVCtvhsh5JoBTZusf0YW8PGXrjAbQgHYBpVFrrWS pqZ62U9NZs/TJyDk5Us85XrKf6eeLXFhJP2OuIZ1kWuSz/xsTRI1W505FXxeNJbLQw88 SWg0vHnsmZqqUiky+4SrEZzY1T+MggQbXfUFogDf0vRnvD/qU/grCb+2XrqphMla+Eve OUWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZjyGiA7r; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-171865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cw12-20020a056a00450c00b006f45eaec359si6662677pfb.238.2024.05.07.09.55.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:55:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZjyGiA7r; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-171865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C762528E029 for ; Tue, 7 May 2024 16:48:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F331B642; Tue, 7 May 2024 16:43:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZjyGiA7r" Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B8001170D; Tue, 7 May 2024 16:43:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715100213; cv=none; b=jmotOraGYkB+AOAoYhlsXh2Zepc5m+JK4hbcygLxOMzRMhJOs+C5+XM2fB1MJ0eDYyotYc4F53TJY67ei6QZ3GrXWnBzVB+lsKd06/rxTgOIXz2ptOKUJlcskeNZl8DdTLH6Qx6Jyq6LnHk+TggGJFMr/6CKrrzYSu45zezp9js= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715100213; c=relaxed/simple; bh=Y7kvUe7PWA91hGpbQvQz1NQycujZOyxpl3+EQ8UjYU0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PlitzZRc1sqBKiZorfskkFPwwY9U92/n2h0w6kVqLah8LDd6FLfZ8yUMyFSWWscjQxH1hJLGZsh6QippHix2uHPLtdIqYlDTBsDQw5aeQDSAQJXw8asrfxPufsF0Qqbkos5FKhg4b+7GMm7YgZxLvelxlInwS+HtY+0XsPw7Zmo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZjyGiA7r; arc=none smtp.client-ip=209.85.216.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-2b4aa87e01aso2403033a91.3; Tue, 07 May 2024 09:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715100210; x=1715705010; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Y7kvUe7PWA91hGpbQvQz1NQycujZOyxpl3+EQ8UjYU0=; b=ZjyGiA7rjwX+1Z9GmQke9oKsybjswn5rPyOjIGkVb5M4G904lCjEc+iOep63JIlmWZ cQrRn8fHhhOQAPMzpWaVoyY6Cr5Wu2Bsv4tCtlWVrWPNC10AmkHJdhuswLAUrCL8pwP5 2KRslaUuycQz3PZKou7e/CVcy8zJamU3jUbX1smC+bZFt2ZGknFtZEzWS3X1iE6rhv24 rVT1EhmNr9sM1yuXC7Xw/s5ZuwmtdRaxGo44VhLhfQ/JlETbzHRpvvmRWo4w2XvGOOKG PL+nsz4CQ9E5lz/1uuCcphCyrRd24mmQca0QGid4jQs7qIMHKuPNdNyoRFmxzKc05iUm ijZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715100210; x=1715705010; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y7kvUe7PWA91hGpbQvQz1NQycujZOyxpl3+EQ8UjYU0=; b=XDeJRLVoTSmmT1soUqWd1bnvgLOjSqqV8ANDqVp/h7ciYpMp9UlKDFQdwMrWltiZw1 +mfZp+pvkwKdD08kAUAo+Out0d9EaWDVF1hUnfNIqP/kxqUYakza1qecph2LfHeF3QUk EMvpK5dVVYVoLkCa3pdch46yIqby8zXASeXYgfktNrBAkgbIU9VN9a0xystCQauOF4ii GgTfI56POT/vFGAem6kPa54QlvlXnBD+JOXd6BQIng0IdE3btr8Iis2tTTKeQnKEKvHC 5xUtCmrurhofF8dndC+D7MFMySKPAx2eiYAQBY72Mc/k+dotuBWlCf5YUjgLmT0/sMHg dJxw== X-Forwarded-Encrypted: i=1; AJvYcCW0HZz0t+wvIhkM2gPyaWrbjf4oqCPGrzPX3g02jQkiWaujlhIebtv07kPn2rbhHpDKVEQNR7B4hCCiDuAU+JoYDdN1tiSvrfjkvgKFkchu+WGDKYQ1mjS5VjVSnS2XevXd X-Gm-Message-State: AOJu0YzB84eN6kiG24zoWn79GDqIeUCVWF+PJzMAaxftSlK6ZMHFRukp Q8m7nY5pqTYqZm7rLxROVYOYgHfPAqcE3kv/vI5mSDz+ZNlyFenw9nRtGogETtHPW1pPIfgz/cW khFJZj23pQzDanl0iceD5+QmOJig= X-Received: by 2002:a17:90a:e384:b0:2b1:74be:1704 with SMTP id 98e67ed59e1d1-2b6165a14e9mr109316a91.15.1715100210592; Tue, 07 May 2024 09:43:30 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240507024952.1590681-1-haiyue.wang@intel.com> In-Reply-To: From: Andrii Nakryiko Date: Tue, 7 May 2024 09:43:18 -0700 Message-ID: Subject: Re: [PATCH bpf-next v1] bpf,arena: Rename the kfunc set variable To: Alexei Starovoitov Cc: Haiyue Wang , bpf , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , open list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 7, 2024 at 7:36=E2=80=AFAM Alexei Starovoitov wrote: > > On Mon, May 6, 2024 at 7:46=E2=80=AFPM Haiyue Wang wrote: > > > > Rename the kfunc set variable to specify the 'arena' function scope, > > although the 'UNSPEC' type BPF program is mapped to 'COMMON' hook. > > > > And there is 'common_kfunc_set' defined for real 'common' function in > > file 'kernel/bpf/helpers.c'. > > I think common_kfunc_set is a better name to describe that these > two kfuncs are in a common category. > BPF_PROG_TYPE_UNSPEC is a lot less obvious. > > There are two static common_kfunc_set in helpers.c and arena.c > and that's fine. it is actually confusing when reading/grepping code, though, so why not have arena_common_kfunc_set and whatever the meaningful "qualifier" name for the other one? > > pw-bot: cr