🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8385

Re: [PATCH net v2] tcp: Fix fastreuse cache initialization on first bind

#8385
From: Jakub Kicinski
Date: Wed, 28 Oct 2026 22:53
10 lines
8004 bytes
On Mon, 26 Oct 2026 09:52:07 +0000 Zhewei Yuan wrote:
> inet_csk_update_fastreuse() initializes the reuse caches only when
> tb->bhash2 is empty, but both inet_csk_get_port() and
> __inet_inherit_port() link tb2 before calling it, so the first-bind
> branch is never taken.

Applied, thanks!
-- 
pw-bot: accept
Technical Details
Message-ID: <20261028155358.10d03bae@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353073-linux-kernel-netdev=dewy.ru
References: <20261026095208.58504-1-yzwlhm@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353073-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] tcp: Fix fastreuse cache initialization on first
 bind
Date: Wed, 28 Oct 2026 15:53:58 -0700
Organization: Usenet Network
Message-ID: <20261028155358.10d03bae@kernel.org>
References: <20261026095208.58504-1-yzwlhm@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1888727"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:OqeIVDMGNsZDaq4QFIebYyKV0jU= sha256:OUFZE4a1Q+09ik05qVBS+xUfMWfhD8MTOerAv6MVXbU=
	sha1:wcwXT1tpq/ENoM6e1ti4PEDzD6o= sha256:W2/AjK9ZB+ZiAvscReFLxdzck36ONjn6C0TgJcG8JoY=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 0BEDB125C4E; Thu, 29 Oct 2026 01:55:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 7BYNW3yW4RTG;
	Thu, 29 Oct 2026 01:55:22 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353073-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 11DC3125C4D; Thu, 29 Oct 2026 01:55:13 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 05BF325C50; Wed, 28 Oct 2026 22:54:16 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793228055;
	b=muYFYJsjJPgNS3+W/K1ZsrlSRkpNqe5oewmQdSNbJ8+zWpj17sVaX836752BXqp9OTUU
	 /WQlGF4ufF136R+PkSWA2ZCc9oZaFW65WNOcTI6SglsyiFVArgBlvoNWiMXqaKJcwuQbn
	 fzeV1Rz4KEpMxftaTlUEWkmpJfdlFsEIBTyXfrI+Mzg025dQ5En68Ib8DpDwWqZsWKTiz
	 FAgSwfDuZ35UJtL/VJC2m5oMkCNk15NhwvzatvVvdnATa76MGoAm6iD+DdU1WIXuuFmZm
	 MH5vOjWArZyM6UDOCsQx+OOXVi2OMQUbpT0DYzHhrUS0EkAmylapzcZh3kqHLcWaJwQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793228055;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=J2JFmHQKnXzvuthRFeIJu+fw+iA/XAbaNbguxe2zCS4=;
	b=ukkXFyCkAeQCECWuXaMyNMNyg6GZCFzaKsXijv3bFqLZexOSF5VLF4/Oz23XwzWQfM/B
	 TixstoQ4Aad49XucQmrQXK12lkriJ06wOkdvXM7viPcGxB6mr6mdmnnViQebY/hndDyct
	 M/TPa8zw71eHBWHpTsJKkAPEJirrZUGwRySLY6dDk2M3VfAhi9U64nxCRQpr+yxSzgn3r
	 zvdmKdlZYJTl7nELZteWaZKeJDyNeKjutJQ2kO7GVttrJoOjH2bsR02aC5zN/lElsyX9G
	 M8MrqTlnEJMfTEBdiiRvSq4pfA7R7sERDT8fcu4ghqkgtXfrH80qNu/u9ggMKkx1xfw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WhGFUVTE;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 05397606A32C;
	Wed, 28 Oct 2026 22:54:15 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WhGFUVTE
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793228049;
	b=ONVTBvGKfCHRhz0sXNbhuTSTHi/4qyxAIN+YLRHKVKBjNQwM3qo6YzDTtO85UxVFcjeD
	 VzIAAtmWAqjF4oCdSGIhwbaT9b8XRvIhvn0YXPuGyCWcSCWrzXP9KUPIg+mTYQmdg8VBq
	 28jZyCQ54qpPM78cT44aVfXivXwm9/8jwMTTq0I6TUNHUO1xidtt1ROafiZQm5CA5hORg
	 uCduoKNHsGlruTn7XGwjAwH6R54etAdRT6P3Ko2ItoqDWScHDpy8pqsM4qeALF8dM4zgs
	 M83pod2uuQPtqT6gVmbSNWjNLaxJpx/D9nc1WehRJ6kGrptyRg2Ri0Ez854CiHuwAUg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793228049;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=J2JFmHQKnXzvuthRFeIJu+fw+iA/XAbaNbguxe2zCS4=;
	b=lL3GbMlV3dCRNOlGg7nYNQWlbQFceFtRKCn8t5CbGWdDXS5tr1eloRd82MtKK1YLrFx3
	 UPmqFD5M3LtLkfXOsEXMENwNj0uQ7pd9vI3hd1BJ9fauo/fZFSVzhTEfqb0mkZMi+OOcp
	 jjD6Jmoi6SltOZS5gpmYzzTILBNwThlhWpP/s+vg/naeakUcQNweQXyXGL9CK1tLFDyE+
	 dm+z14eDf71+Adt34KHWjtN/vX8AfFQY83rbli3yBhlm7L/nIqb1CmO08T3roTeh7GTNb
	 KvmnZglZrr4C/VLOUbJ3a2npogixLASV4YQvtCTsSLds7aE4mA1rbi/jtcGXnUCJ9og==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WhGFUVTE;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0EEFE606A31C;
	Wed, 28 Oct 2026 22:54:09 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E130C1F01825;
	Wed, 28 Oct 2026 22:54:02 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793228048;
	bh=J2JFmHQKnXzvuthRFeIJu+fw+iA/XAbaNbguxe2zCS4=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=WhGFUVTEM6tytriTUoc6gHMhGzY16YKQFA5sMaTPmS8x6Qjv9xcTYiggRDUVBEtCQ
	 WOHt6dPjyCpicCM9a1vkFygQ4EzIcthg2pfyGa4fTmt7rG8TNVLn7nXN5zPtfaA2OV
	 sW+emRvJuNBcD086YSsJEjwyMM2AWdmDwBvXb2Xe8qXJqc2Kq8VPvcu0gHdNn/rDYl
	 HNNRzuw07POf3puuhnybvm+VSoNYHmGNx8YvNK9s3Ka2MSSpieaiGz1pR1iwsv8S7B
	 TDp34QmCu8uXmf5tO7ImeHkail5h9uO2Hx0S2zhFREOtVBsYfcI69Rt8GkmcKDfmQA
	 jTQNbad13i6cA==
X-Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Dumazet
 <edumazet@kernel.org>, Neal Cardwell <ncardwell@google.com>, Kuniyuki
 Iwashima <kuniyu@google.com>, "David S. Miller" <davem@davemloft.net>,
 Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>
X-In-Reply-To: <20261026095208.58504-1-yzwlhm@gmail.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list