Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) (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 B2506255F2C for ; Sat, 13 Jun 2026 01:00:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781312446; cv=none; b=aMnnp9kbUxo8glUbLE88HdT7azpMHhBruh1glE+BtCnkOqZVUVRswdVTcUH6gL6HgVXSN0dzQNoEC1UzXsqVbrE74nlSLuOSDqUDrj1A90qyCSXfp3AV3E9KyomrSePx1ujMysrK5/u772crfkYpKOwUa4uNOaunq8ZrhQszn1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781312446; c=relaxed/simple; bh=LiD75WaDj/nNjJkDcjE9w7295/2dOZf6vbD32NlQZI8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ByLM61G6+/Q9o3fT+OZYTfi4v/M79f3Yrq3d7H3u5Pa0L2yLH2dhShcYQm8N5UDeKMwq0PvAKJfrChkMDGPBjWWQMPJoBLoSO1InICbo/GEXBuQRMqdbYdd56AM4D4W2zcDvblStnbGHfYIWobvBe2lPQtyuApUyUbfuUvodiPs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--kuniyu.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=mPPCagDl; arc=none smtp.client-ip=209.85.215.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--kuniyu.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="mPPCagDl" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-c8620ee0971so1535330a12.0 for ; Fri, 12 Jun 2026 18:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781312444; x=1781917244; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=yUo9GSEHGqFt/lJLpzmBjgRQi1upn5qNvml1cjFSyZ0=; b=mPPCagDlRIwikUkztUmcWghcymgi7GtNRXF/Yih4y66pCpMN4MEKWjlKhamMKaSlNa ApboMRb3nW6cmBg2VqJmP5UVhEHfjq1j7v7VmCbonc6Yuzrw3KRQK7VFvCmSIQW879JG GAVHPpTTBWPCHJFXM9PEsB73S3jbYsYUbPfVJOR3VwNKxtzLatvRDuWYExaqhXraYgfz aPTLtLxgYpgEGzET1uGsVem/ZQdnAnT7aupuFTbiF40rt/97JT5/0wUIu9yiEiWqEGaM 8J+GBPiSr3aeCmonCqDMfXkc4r74HLfsEA98lI1U8dJYo5FTL11ko4AUzXt1qi5fIJeY PG+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781312444; x=1781917244; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yUo9GSEHGqFt/lJLpzmBjgRQi1upn5qNvml1cjFSyZ0=; b=a5d6Ft3IR6PFLF/pvIMpKZqtc9zqrR2VDLBx2ULpp/WUu1Q1jCUSeE2ZvSFXI2qFSX lFdw5k0z6m0830OETFcmBAExumGkoKIkdkiTI2icvfhAAF6umr+iGAiPTQu/nv9korEB oh7lXwDFky5APAKg5T6hRq2H9LhTZEHg5PxmA7OlQ9IBOg71d+87Y+M7S1bBaeDu89jH YtlCYTt6NPVZTfkcfnBGmWINU7m4pXoa1qbVEhZWDg0IwJh76F/gL2iurLvR21gweM8b NfrvJIaS0ltDTaoEyAdAm9AqVPUnC2NS14VLIbb+qss3c93X3V2I/OfcZh+ZH8OG4GfW TZRQ== X-Forwarded-Encrypted: i=1; AFNElJ+NedCms1nlM1FHxHehr93FY2lBDtJlMzgfrFNGit2rTrypjYHB/tGre+LJ3yQFtAGPy7c=@vger.kernel.org X-Gm-Message-State: AOJu0YywGfZeUI6W+VvsOY41Q+0l9deH0j5bpYqi/RlQVkLUCMqyhZ8B 2tQqvGMeT1Lxpj1vufnhv0/Keh4It8AG1q1Y1g2L/He38asLgqmMpVHRmG6XGJHz9eYzPhJ05wj 90QfFHA== X-Received: from pgoe18.prod.google.com ([2002:a63:9a52:0:b0:c86:4cf0:705a]) (user=kuniyu job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:115:b0:39f:3efb:e888 with SMTP id adf61e73a8af0-3b79636aa3cmr2144573637.25.1781312443829; Fri, 12 Jun 2026 18:00:43 -0700 (PDT) Date: Sat, 13 Jun 2026 00:59:59 +0000 In-Reply-To: <20260613010039.1362312-1-kuniyu@google.com> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260613010039.1362312-1-kuniyu@google.com> X-Mailer: git-send-email 2.54.0.1136.gdb2ca164c4-goog Message-ID: <20260613010039.1362312-3-kuniyu@google.com> Subject: [PATCH v2 bpf-next/net 2/5] bpf: Rename bpf_kfunc_set_tcp_reqsk to bpf_kfunc_set_sched_cls. From: Kuniyuki Iwashima To: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Stanislav Fomichev , Andrii Nakryiko , John Fastabend , Kumar Kartikeya Dwivedi , Eduard Zingerman Cc: Song Liu , Yonghong Song , Jiri Olsa , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Willem de Bruijn , Kuniyuki Iwashima , Kuniyuki Iwashima , bpf@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Currently bpf_kfunc_set_tcp_reqsk is registered for BPF_PROG_TYPE_SCHED_CLS. We will add more kfuncs there, but the name is too specific. Let's rename it to bpf_kfunc_set_sched_cls. Signed-off-by: Kuniyuki Iwashima --- net/core/filter.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/core/filter.c b/net/core/filter.c index 80439767e0ee..acdc66aa4f27 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -12498,9 +12498,9 @@ BTF_KFUNCS_START(bpf_kfunc_check_set_sock_addr) BTF_ID_FLAGS(func, bpf_sock_addr_set_sun_path) BTF_KFUNCS_END(bpf_kfunc_check_set_sock_addr) -BTF_KFUNCS_START(bpf_kfunc_check_set_tcp_reqsk) +BTF_KFUNCS_START(bpf_kfunc_check_set_sched_cls) BTF_ID_FLAGS(func, bpf_sk_assign_tcp_reqsk) -BTF_KFUNCS_END(bpf_kfunc_check_set_tcp_reqsk) +BTF_KFUNCS_END(bpf_kfunc_check_set_sched_cls) BTF_KFUNCS_START(bpf_kfunc_check_set_sock_ops) BTF_ID_FLAGS(func, bpf_sock_ops_enable_tx_tstamp) @@ -12526,9 +12526,9 @@ static const struct btf_kfunc_id_set bpf_kfunc_set_sock_addr = { .set = &bpf_kfunc_check_set_sock_addr, }; -static const struct btf_kfunc_id_set bpf_kfunc_set_tcp_reqsk = { +static const struct btf_kfunc_id_set bpf_kfunc_set_sched_cls = { .owner = THIS_MODULE, - .set = &bpf_kfunc_check_set_tcp_reqsk, + .set = &bpf_kfunc_check_set_sched_cls, }; static const struct btf_kfunc_id_set bpf_kfunc_set_sock_ops = { @@ -12556,7 +12556,7 @@ static int __init bpf_kfunc_init(void) ret = ret ?: register_btf_kfunc_id_set(BPF_PROG_TYPE_XDP, &bpf_kfunc_set_xdp); ret = ret ?: register_btf_kfunc_id_set(BPF_PROG_TYPE_CGROUP_SOCK_ADDR, &bpf_kfunc_set_sock_addr); - ret = ret ?: register_btf_kfunc_id_set(BPF_PROG_TYPE_SCHED_CLS, &bpf_kfunc_set_tcp_reqsk); + ret = ret ?: register_btf_kfunc_id_set(BPF_PROG_TYPE_SCHED_CLS, &bpf_kfunc_set_sched_cls); return ret ?: register_btf_kfunc_id_set(BPF_PROG_TYPE_SOCK_OPS, &bpf_kfunc_set_sock_ops); } late_initcall(bpf_kfunc_init); -- 2.54.0.1136.gdb2ca164c4-goog