From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed2-f7.google.com (mail-ed2-f7.google.com [74.125.228.71]) (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 A2FF9387348 for ; Mon, 24 Aug 2026 20:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787602198; cv=none; b=WrI+mbXaxTOKi2KJqbZtjXDPDNfx7nkcp1QTkj8piezH/bduJMdkxOdHNaeM0OzWWi/JyrKqUFL4vZ0hE22IjeuucGM4YSIaLVd90U6JP6HwJLKRd4u4evHIk/YprVwOJTOVW7WN5YxGKgiUfN+u1rjD9vWWgAdDr9Bryud6vKw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787602198; c=relaxed/simple; bh=O7yhtO3d4iaN174q/gULeCh+5l267X5djaLXQqSRSh4=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=p2L9webglUTduJFMV+/bZHJcgIq4lUq6T7+AUP/5souWZMJE3pylihAKmdDjRN9un/McjMGtbzf0vntdqh0Wx2tc4r0ayFP873Y5mjqwR9ImbsrNEqA7M1rWtypttWvyOR56bbjI7XdmcaEarINkwLSbnGkiOUrkXgyjHpppKh8= 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=QgVLMsEa; arc=none smtp.client-ip=74.125.228.71 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QgVLMsEa" Received: by mail-ed2-f7.google.com with SMTP id 4fb4d7f45d1cf-6a403027d38so2034668a12.0 for ; Mon, 24 Aug 2026 13:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787602195; x=1788206995; darn=vger.kernel.org; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=/X6rfEqJVCIYpv2Uz14icNHvczQMxyvZzqtmzqLXxEQ=; b=QgVLMsEazBKz00+GE/qOE/3G+0yJqxF+kTbvH1Zsna4xeM8ZOdnZG/M2keJnlCqxLE CrGrTn5lUvKUxaHrI7ei1jQ2Rog9AqCUIz4wOo/bqtDAwL84d+W8KvJYVHu6GKQoqsB+ 6AmQ/8NmnBkuYcSH08pSS9ITL6aVY06BSn2LQyFuDKOgZlpXEmZk+M1Rq9UPdh4Flf6Y l8uvJnrS9rJ+mfJnsiynNufnw9xXNQQs0yPSmh5u4FUbc2IHmR9SBM4PmY199O9BFQG8 1+UTD6uK07Hh093b0GHfveK4z8bGkwAfXFVtPdDyD86L+xorh4KmOTftiz5XOPbHgcD1 dDhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787602195; x=1788206995; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/X6rfEqJVCIYpv2Uz14icNHvczQMxyvZzqtmzqLXxEQ=; b=pM/NR2c2w/ZItRgB6j/dXRGGRSnRd9vkWnjS32iZmdCzT/o8kzQCRQw3mMPbkk6PNP Z3R2j5jv+4MYq7rjMXTmE8kIMV+6e0d8+h/YieHMQMphl6aZEBjTjDgNSJcE771c3o+j goq/Ece3Xi6KGu+IWyDEWG+IzJvypgT5tqg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-Received: by 2002:a05:6402:2549:b0:698:6620:d988 with SMTP id 4fb4d7f45d1cf-6a582b8cd2emr18739293a12.15.1787602194789; Mon, 24 Aug 2026 13:09:54 -0700 (PDT) Received: from localhost (nat-icclus-192-26-29-3.epfl.ch. [192.26.29.3]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6a59e001305sm10841718a12.4.2026.08.24.13.09.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Aug 2026 13:09:54 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 24 Aug 2026 22:09:52 +0200 Message-Id: To: "Jakub Kicinski" , Cc: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v8 net-next 0/2] Explicit TSO segment count From: "Kumar Kartikeya Dwivedi" X-Mailer: aerc 0.21.0 References: <20260824163139.990734-1-chia-yu.chang@nokia-bell-labs.com> <20260824130511.2955f30d@kernel.org> In-Reply-To: <20260824130511.2955f30d@kernel.org> On Mon Aug 24, 2026 at 10:05 PM CEST, Jakub Kicinski wrote: > On Mon, 24 Aug 2026 18:31:37 +0200 chia-yu.chang@nokia-bell-labs.com > wrote: >> From: Chia-Yu Chang >> >> Hello, >> >> This series replaces the existing min_tso_segs() congestion control >> callback with a new tso_segs() callback that allows congestion control >> algorithms to provide an explicit TSO segment count for each data burst. >> =C2=A0 >> To support BPF congestion controls, the series also exposes >> tcp_tso_autosize() as a BPF kfunc, allowing BPF implementations to >> reuse the kernel TSO autosizing logic while implementing custom >> tso_segs() callbacks. > > AI CI says: > > The bpf-ci build jobs are failing for this patch on all tested > architectures/toolchains (x86-64 gcc-15, x86-64 llvm-21, aarch64 gcc-15, > s390x gcc-15), all with the same link-time error: > > net/ipv4/tcp_bbr.o: in function `__BTF_ID__set8__tcp_bbr_check_kfunc_id= s': > tcp_bbr.c:(.BTF_ids+0x...): undefined reference to `KF_DEPRECATED' > > This comes from the change to net/ipv4/tcp_bbr.c that marks the retained > bbr_min_tso_segs() kfunc entry with the KF_DEPRECATED flag: > > BTF_ID_FLAGS(func, bbr_min_tso_segs, KF_DEPRECATED) > BTF_ID_FLAGS(func, bbr_tso_segs) > > KF_DEPRECATED does not resolve to a usable symbol/flag in this tree, so > the BTF id set for tcp_bbr fails to link into vmlinux on every > architecture and toolchain -- it's a straight undefined-reference error, > not a per-arch/per-config issue. > > Could you drop the KF_DEPRECATED flag (or use a flag that this kfunc > infrastructure actually defines) on bbr_min_tso_segs, and re-verify that > the kernel links cleanly? A local `make net/ipv4/tcp_bbr.o vmlinux` > build (or the bpf-ci selftest build job) should reproduce this quickly. > > Full build log for reference: > > ld.lld-21: error: undefined symbol: KF_DEPRECATED > >>> referenced by usercopy_64.c > >>> vmlinux.o:(__BTF_ID__set8__tcp_bbr_check_kfunc_ids) I think Chia-Yu's AI is hallucinating, it was a proposed flag but not added= yet...