Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp565551lqh; Tue, 7 May 2024 07:36:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX4vhNzo+dDNzQTEeyWEBbLbe4NHKZf37huOxMiBR4ao+tiDef0mWdROk4W2lh75cIHzt+WrqHhBPW9xi4GDu4nw+MsGeLMw59d7v2oOQ== X-Google-Smtp-Source: AGHT+IFIIQUC4OWNAjj1KP20ir8ZQKKocnWx6EhdvuLTneYBhiJ0uzcPJtODHJ8eSZo/z6oQd5th X-Received: by 2002:ac8:59d2:0:b0:43b:149:da2 with SMTP id f18-20020ac859d2000000b0043b01490da2mr16377632qtf.51.1715092603238; Tue, 07 May 2024 07:36:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715092603; cv=pass; d=google.com; s=arc-20160816; b=uQFkcnQlB4gxYiP6I8sohQrHN009YOwUkxqm1ua+R8c5QMtgxRskW9B+0ldsuL5AET V09Iz9F+LLkgMhSXWwZ3AwwR7UyISUWX07Y8fJXa050JQzW1idi4GDz8LoStTHwqa15e dn6DB1u49biJVc4O2riOxZ0dZYOzJc+zlPzymgsNAsar0HL3btCsD2fCN/ALjYGRmfhD BccMXHxxdmTS9pzgAlgB7nzFvYbw7Pi0wtK7oOhKIAZlY0t8O9VjR5/VTCjUWRQnvnjb TCWEJd9YfD56XacOHsGwELT6TAYZGqf3rnUwkowxkT94cP/UpIoSbmNNVywHpmSmPtNQ G9Wg== 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=ltkHF7USXEUiblC57EI2w5ExeCBBkAO5TlznSzRIeWg=; fh=/+HimYwV9szJcBRJPAkDvkSoWyda8vCb5uf72A54GYo=; b=N20Wa2Oxc2+yrSFXQK/1WD0JMoQFuaPNfXQCosE/TyJgBSQhZB3sho0p2jwsNDvoMx r5VNQHUlTRoVVI94UXKWsfiqyc875uxSrJgGJftzdbsZXZha1Q2HvJLOEG+1FBo/WBOa HBCgrrbS2tSiVDQ07FwfI271anSgpyv2YbU7NaKhUzebycaRdkZRUL74CTs5Hu4XMtmB 7vpAMGSg0YwCbFdtN1q9Rwy9BB/lE/y2jFwwjhxCC/yTH1uhCiGQnwxuKOqD29wDGtQX qIiyIIlK1YJIsjg8XUVJ5NsuD/ZEoTmT4OR/mTyRlOwCeSNTfUP4liDoHSZGPkqTatxd 7gMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="mq6/KdbR"; 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-171590-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171590-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dr17-20020a05622a529100b0043af4cf7351si10918774qtb.700.2024.05.07.07.36.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 07:36:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171590-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="mq6/KdbR"; 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-171590-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171590-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E8C261C22FFD for ; Tue, 7 May 2024 14:36:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77B78154BFC; Tue, 7 May 2024 14:36:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mq6/KdbR" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 357DC1514C5; Tue, 7 May 2024 14:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715092593; cv=none; b=Y9WKM4PQpRdGxZRepq01FmdWDxDivp1E9vqnZtjOLy3YLDrcgrkZB1ms9juj/ZEPvwvHVhS+wVJU7w4TCK5dHBLcTRlHqHvc1xtEQuxgU81XXelN1xtFR5qh0RgB/ZtV+DNlSItgJMct+lUEqV/g44RK/vxB7OhRkxsrJpwr7RA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715092593; c=relaxed/simple; bh=ltkHF7USXEUiblC57EI2w5ExeCBBkAO5TlznSzRIeWg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=r2b7a9Y+qJY5cJ57h/0Lvjx4RTeC9Q1b+65brjXJIi0T3pgLBCqEEWt38oP53aWK3OQhqfs6fhL2AGtyftA+xA/fiW3iUCrNsZwSW/0Yi82ml+msKxoEGomcWXGX6NPYbKJ/l8GsEAz06x+E0a86WRnGTBVtktyamRPgqkdh4EM= 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=mq6/KdbR; arc=none smtp.client-ip=209.85.221.45 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-wr1-f45.google.com with SMTP id ffacd0b85a97d-34ef66c0178so1873018f8f.1; Tue, 07 May 2024 07:36:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715092589; x=1715697389; 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=ltkHF7USXEUiblC57EI2w5ExeCBBkAO5TlznSzRIeWg=; b=mq6/KdbRwdTPQMSRwYPD3fXvfvoj3V8L22IKTWwAtkaI/bgezFfzTd8JIJizjhrNWD Qd+q2XQh3XY+WRw0DlUK4SyocXMj28jMojqvf8C562Xk+7/+XO+bym6QvTZQauaGHKS5 xVD8OFy7/ZJsUTEEkXvMIwnnpiuC/t1X5+OXAASr5gAD9IoIsCv8K1u8f9iB/+Oy7XM2 Rrr461egeZyLcwzcZK0nCPVWaW5uL3cix0l7lnLkEW5GJkWjsYr8EyxGok5OU38nrB9m 9sjXgQ9VfECgQgmYnjXWZ2NzD0s91OAgP6Sb6vIDS0f5Zuk/EkYOC4Ljq7EIJSWPKrrE Rbvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715092589; x=1715697389; 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=ltkHF7USXEUiblC57EI2w5ExeCBBkAO5TlznSzRIeWg=; b=X0oaMgafNaKUuL78FMi4536T7kq+I3z70H3FGSiL1YtNGKfo32igi3etCK59qp3dB9 pKQ4QiMgbJwmNHbue3ewuJrYRI2ubIv4EiIKMu3MOwLss1iKU0QsPaD4URjcIf+etIq/ a37fuu3R6U7MNj/MZbOC8uTvm9c+F8ScptvZLgPpKt8flpzKQdwoJtQr4n2PW220viQX FP8o7ZRBGv3yewqxuYgLaaZ5v9EQm0h/9Rc+Cn216ih4fr4PbBrIjWJ9wuPnwLifWJ+0 F3o8pyM+oKW+eEyLhWWFICQ8Iayar6D0UPUN7xNih014wnyXv83bnAds4Z2mJ7ddlxLj fKrw== X-Forwarded-Encrypted: i=1; AJvYcCUDH3Z7myb5KGZNqm4JjcOtx26jecXo+mrA51OU4dIR2XDrRg+ASnt2ciqXGGIWXYKaX9Vm1v4BPvIVkvqol5izbS7f/iBxA3kYHjdO X-Gm-Message-State: AOJu0Yxek0Y3XMvGQbolktFfisSvCEnEm3bNGDyS0Per+iylTlzoAEU0 QNQ56fsjm4oOdX0M2R+XbQmNw4zfsIGxR8EJ5Gt3s3n0bcKjV3FDrBlgkUTEfE0HQ2bRvDpQV9D rLWPFhGk08jGorgghQkQCuIYbHmU= X-Received: by 2002:adf:f8c6:0:b0:34d:9c8f:61a1 with SMTP id f6-20020adff8c6000000b0034d9c8f61a1mr11820520wrq.60.1715092589280; Tue, 07 May 2024 07:36:29 -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: <20240507024952.1590681-1-haiyue.wang@intel.com> From: Alexei Starovoitov Date: Tue, 7 May 2024 07:36:17 -0700 Message-ID: Subject: Re: [PATCH bpf-next v1] bpf,arena: Rename the kfunc set variable To: Haiyue Wang Cc: 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 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. pw-bot: cr