🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22316

Re: [BUG] ipvs: new connection on a reused port goes to the previous real server during conn_tab resize

#22316
From: "Zhenrong (Daniel) Gu"
Date: Wed, 25 Nov 2026 06:22
30 lines
9443 bytes
Hello Julian,

On Wed, Nov 25, 2026 at 07:04:57AM +0200, Julian Anastasov wrote:
> 	Thank you for the testing! Due to the Sashiko concerns [1]
> I'll post new version later today:
> 
> [1]
> https://sashiko.dev/#/patchset/20261124160226.103532-1-ja%40ssi.bg
> 
> 	Here is the v2 that I'll post, in case you want to do
> the main test again. The difference is that we do not mark
> the connection as reused early because a retransmitted SYN
> should hit the old connection while it is using confirmed
> conntrack and is not expired yet (2nd SYN comes before the
> expiration):
> 
> [PATCH RFC nf v2] ipvs: fix connection reuse with the resizable hash tables

Thanks for the update. We reran the tests on v2 (same net tree
af6737b90, 7.4.0-rc3+ in the 8-vCPU KVM guest). All previous
tests continue to pass, and in addition, we ran a 30s force
mode test with net.ipv4.vs.conntrack=1 and active nf_conntrack
(7438 reused-port connections): 0 misrouted, delayed, or
failed connections.

Tested-by: Zhenrong (Daniel) Gu <zrgu@stu.xjtu.edu.cn>

Thanks,
Zhenrong (Daniel) Gu
Technical Details
Message-ID: <awZ-p0v7Cr2hBfon@fxxowodeMacBook-Pro.local>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371055-linux-kernel-netdev=dewy.ru
References: <avx0_13w3xGNdZP8@fxxowodeMacBook-Pro.local> <d876f5ef-982a-0ddb-5e75-3434453c2ccf@ssi.bg> <av7f6F123V2WDd_u@fxxowodeMacBook-Pro.local> <a5aa2a54-d8ea-bbe1-3a72-d672d6fd92c4@ssi.bg> <awWHfO0EgdLoOxLi@fxxowodeMacBook-Pro.local> <4da25158-cbab-1186-b948-e17b13262bc3@ssi.bg>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371055-linux-kernel-netdev=dewy.ru
From: zrgu@stu.xjtu.edu.cn ("Zhenrong (Daniel) Gu")
Newsgroups: linux.kernel.netdev
Subject: Re: [BUG] ipvs: new connection on a reused port goes to the previous
 real server during conn_tab resize
Date: Wed, 25 Nov 2026 01:22:31 -0500
Organization: Usenet Network
Message-ID: <awZ-p0v7Cr2hBfon@fxxowodeMacBook-Pro.local>
References: <avx0_13w3xGNdZP8@fxxowodeMacBook-Pro.local>
 <d876f5ef-982a-0ddb-5e75-3434453c2ccf@ssi.bg>
 <av7f6F123V2WDd_u@fxxowodeMacBook-Pro.local>
 <a5aa2a54-d8ea-bbe1-3a72-d672d6fd92c4@ssi.bg>
 <awWHfO0EgdLoOxLi@fxxowodeMacBook-Pro.local>
 <4da25158-cbab-1186-b948-e17b13262bc3@ssi.bg>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="131338"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:qAEp5UwL1ci44jiL/tgwF6Tcyss= sha256:En2wzhE0KoT+4rMkMDcgz8H5eyjLbICPEeT/a0fxFvM=
	sha1:89qo38WVhzdAapBQIVs/VrcAOIY= sha256:NqO/oRJ1gTH0Cib6+zhi4rrosVlLGFS2O5oISUBO64c=
Content-Disposition: inline
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 E20D0125E3E; Wed, 25 Nov 2026 09:23:08 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.95
X-Spam-Status: No, score=-2.95 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 xwzwBEDy255P;
	Wed, 25 Nov 2026 09:23:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-371055-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=stu.xjtu.edu.cn
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 1D222125E3D; Wed, 25 Nov 2026 09:22:59 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 65A022BDB0; Wed, 25 Nov 2026 06:22:43 +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=1795587762;
	b=ciO+f/aJ2BWik+Dy5iQLrcnwgKqE7bLNQd+6bg1og62739stX/zFGL5yKpZxIF7ghE3X
	 o4GeI52wz7AbDJWPo3b5vcfBcqp+I775R3tvUGaifbUg6vehF+eBxu61AlUvPCFW4TDVk
	 3Afug4WYRSv+XANVMtVhEvMUfzv8OLRfgDFJUvv/yT31Q7gy4aeyac5QNJr2IgAhH5o8G
	 3fuAyIu1p7r/f8dIubAtMuWFYWPNFWi1aqc17AZ1EOteDe75wtD6EhQlun2S6tPRDM9sb
	 NVupTMk6zMAYzsWl5WggtsSceu+4UZMCI1UnhEFB9RQsUYNiN20EhJkyQ7m0opzEmjQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795587762;
	h=X-Original-To:Received:DMARC-Filter:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To:X-CM-TRANSID:
	 X-Coremail-Antispam:X-CM-SenderInfo;
	bh=ukAnIx9CIIZ9kjRSJQFLi2KYR1rvbJhbQwVVFeyyRFQ=;
	b=3uv9ULDCCTVZJQ6GpwxO9qf5dctgUbOGcjYjVWRTbNTvjq8gHC2qzk28xr/njFALIYXE
	 T9sCLQVm9TSJOx4KZEVGGQRQYXXz/hoJTCbJU0fw5ByP6M5LscTr+qkbl3QB5Z220QCBA
	 drGyILcfT7sVXpF7M+TzvLADCye5iCWRiAXjZ5RySDFnG4ZdvQMc4UH1+VndEtd9AaJJ5
	 vMidFVirjDGXdSQwGIOr4uocXiROOIBrGhzCi8voRfx2nbxDrB3p/RBYOqKVs/JlTWSNc
	 Lbh9eDSupldJhsct7j62dQ2Ot6H17j3Yq47ma8DjvmMY758oen8cLV/JYS6ulkl55JQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=pass header.from=stu.xjtu.edu.cn;
	spf=pass smtp.mailfrom=stu.xjtu.edu.cn;
	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 98330606A684;
	Wed, 25 Nov 2026 06:22:42 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.75.44.102
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795587762;
	b=UhMlkl6lp5DxG2xY0JuXkcg4Q5XiXHyvVMiQ9HcpXxx4RkM7szRUNrNYYCva8wbjXaDl
	 3MrCXXwTYP/VSwVNzvs7peg94gBJmOoh90bp7NfkwzNDe2bzM9BJfjPlDpMtxcUi6gZPD
	 Mak3vJpjynADS9QS1YKTdEtFnvL7yAWHvV1IjDhP+jrnSfvS9bASszg/pKJmaw9dBSOvy
	 8O2Ipp5wfv4oTQ9SkebHpeFJlOorgH3yAjNdx6XBMK2vrC/f9w8Z7G0agCaQwFDEmOyS/
	 CtpFSRlvF+pWH1U2ipvROjtODvRI/3NXmnxmNZVgWgpuIVQraqSqQVQBtP9OTohwEgw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795587762;
	h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To:
	 X-CM-TRANSID:X-Coremail-Antispam:X-CM-SenderInfo;
	bh=ukAnIx9CIIZ9kjRSJQFLi2KYR1rvbJhbQwVVFeyyRFQ=;
	b=4YbhKejN782lphbMwDO6d/v2ELM6Kx4uSjtD/J+mQAEJd7ei0Ntq+QuTyBNXQPiJeBHo
	 8gJ1KazgMVdv3NpE3UyhvOK/1flkR/c2YAFo5XWW+GtysRKCRxKQZflzUFizAIahU3Mwp
	 YG6NRHqp9nbhI+rTVSFc8y1wL4FrdbudWEMuYblHByVrn75vZTjTxxHhd/Z3eu4Xd11pU
	 Do2XG0QlMfcfwY91iFulqRXBEPy6DWpf/fGGATe0NC26umeDRzN0vc0ABuDLLWpSFAeTl
	 SI/udM9R3Ij/I9k0cYGUDaNN+BTbfSgnQOucO4Ur94fi/OOkRTysdWWIRPJN4fYAKsg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=stu.xjtu.edu.cn;
	spf=pass smtp.mailfrom=stu.xjtu.edu.cn;
	arc=none smtp.remote-ip=13.75.44.102
X-Received: from azure-sdnproxy.icoremail.net (azure-sdnproxy.icoremail.net [13.75.44.102])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 81790606A32C;
	Wed, 25 Nov 2026 06:22:38 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 81790606A32C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=stu.xjtu.edu.cn
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=stu.xjtu.edu.cn
X-Received: from fxxowodeMacBook-Pro.local (unknown [10.181.177.214])
	by app2 (Coremail) with SMTP id NAGowAB3KZasfgZrTAqDAA--.38917S2;
	Wed, 25 Nov 2026 14:22:37 +0800 (CST)
X-Cc: lvs-devel@vger.kernel.org, netdev@vger.kernel.org,
	Xing Feng <xingfeng@stu.xjtu.edu.cn>,
	Peng Zhang <p-zhang@xjtu.edu.cn>
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
X-In-Reply-To: <4da25158-cbab-1186-b948-e17b13262bc3@ssi.bg>
X-CM-TRANSID: NAGowAB3KZasfgZrTAqDAA--.38917S2
X-Coremail-Antispam: 1UD129KBjvdXoWruw1kKrWDKw13CFyfZF17GFg_yoWDtFc_ur
	WfWF97Ca1qyay8Ca18AF1rArn3Ga4UWrZrZFn0yrWftFyDGayDCF4kWFWS9wn3X34fJF1a
	yrs0ga4akry29jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT
	9fnUUIcSsGvfJTRUUUbVxFc2x0x2IEx4CE42xK8VAvwI8IcIk0r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