Article View: linux.kernel.netdev
Article #12784[PATCH net-next v2 0/4] tcp: fix tcp_base_mss on passive connections and test MTU probing
From: Yongjian Wang via B4 Relay
Date: Sun, 08 Nov 2026 14:39
Date: Sun, 08 Nov 2026 14:39
43 lines
12422 bytes
12422 bytes
With tcp_mtu_probing=2, passive TCP connections can start at the full
MSS because they sync MSS before initializing MTU probing. Patch 1
moves initialization next to the existing MSS sync in the passive
paths and in the active SYN-ACK path. Patch 2 adds a regression test.
Patches 3 and 4 add coverage for black hole detection and the MTU
search on active connections.
Tested on x86_64 KVM with all 496 packetdrill cases passing, plus
targeted checks for simultaneous open and Fast Open with MTU probing
enabled. The three affected TCP objects also build with W=1 under
allyesconfig and allmodconfig.
---
Changes in v2:
- Move tcp_mtup_init() before the existing MSS sync in IPv4 and IPv6
passive opens and in the active SYN-ACK path. Remove the late
initialization from tcp_init_transfer() (Kuniyuki and Neal).
- Keep the three packetdrill patches unchanged.
- Link to v1: https://lore.kernel.org/netdev/20261103-mtu-probing-series-v1-0-a2809e725aaa@gmail.com/
---
Yongjian Wang (4):
tcp: initialize MTU probing before syncing MSS at connection setup
selftests/net: packetdrill: test tcp_base_mss on passive connections
selftests/net: packetdrill: add TCP black hole detection test
selftests/net: packetdrill: add TCP MTU probing test
net/ipv4/tcp_input.c | 2 +-
net/ipv4/tcp_ipv4.c | 1 +
net/ipv6/tcp_ipv6.c | 1 +
.../net/packetdrill/tcp_mtu_probing_blackhole.pkt | 37 +++++++++++++++++++
.../net/packetdrill/tcp_mtu_probing_passive.pkt | 27 ++++++++++++++
.../net/packetdrill/tcp_mtu_probing_search.pkt | 43 ++++++++++++++++++++++
6 files changed, 110 insertions(+), 1 deletion(-)
---
base-commit: fa5196392691051963726787944db872420dfa75
change-id: 20261103-mtu-probing-series-a87b39fdbedf
Best regards,
--
Yongjian Wang <echoowall@gmail.com>
Technical Details
Message-ID:
<20261108-mtu-probing-series-v2-0-355d6490c3db@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358780-linux-kernel-netdev=dewy.ruShow 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-358780-linux-kernel-netdev=dewy.ru From: devnull+echoowall.gmail.com@kernel.org (Yongjian Wang via B4 Relay) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v2 0/4] tcp: fix tcp_base_mss on passive connections and test MTU probing Date: Sun, 08 Nov 2026 22:39:50 +0800 Organization: Usenet Network Message-ID: <20261108-mtu-probing-series-v2-0-355d6490c3db@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="144088"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:OwlVRXdWGv19X+WcYK+DuJp+v1g= sha256:ZzwO/5T5egBUT6xIaW1HSxblsB9rj/p9OwCh4xipyEo= sha1:QRbHJr0JL7hKUntS7DQzRXkgq14= sha256:beipk7xk0+h9bU4CGYiXlrX66a4yWH6kX5G3fvaFo6Y= 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 71DF41135B0; Sun, 8 Nov 2026 17:44:17 +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 GuayKfhk1qpy; Sun, 8 Nov 2026 17:44:09 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358780-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 9107E113578; Sun, 8 Nov 2026 17:44:01 +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 32F7C2B07F; Sun, 8 Nov 2026 14:40:12 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794148811; b=biKO/pACiXLnCP8GBiIBGQ7Q2BEI55IHNeyymT442f9pI7FwpoFnsgTs2uiM4SEiVhWJ tSllKnnT8is4JCB9XQqTlQemK6OIXzvyjWpUaMLEFnTx92sAU9m6lG5B47fd8WEv33t8M oS2X6WTYj9VndHC9K1sOYfQ49l9QlsdA7aV5lZlTpeuwFkxqZ8k8cYX0UaPTaqtg2FhXO Uh0TKIuxSu4xtCj2QYXPJJO7QfLAUndGHrI2I5ngY70CjVVKsxsDzv1od9yrFpbUx3Ogy f+tjw94O73/eIZhdtLvqtzRYfnkN0npJAJHl7gkxRyETStlWyE1DtpFUJ6p7I7S5DFA== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794148811; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Subject: Date:Message-Id:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=umoo2Lp9rUq60YFsX4JKM8uqEu+Er3Yh7U0wKuiM0Qk=; b=kmuFsiDV/YuuQTVnbcMscdwSSx0aG6SMZUsc2QVf1PMXrSkaPD2UZMv9GsC0t7C51l3U rneVvkCRdmwLHz0YdBQByoes4A5etzqif+Bc7khjp6/25fWbwOaYbAk0jKibzB3tO2rTF W5mgEesRKB068nv0LJLIP95uVKt5TdOJro6EjHxv1q/TwwpVtnZFXJ3rvqDmmqlkAj6UB Obf05Zdv219zBw7S8TTbGpaNRiiFLSd8RHBw7AxXN/3YDOnBbVhYdHg/D9f6kgP07ty1L HHtHpAF8pcytPJJBjfERWFOhPIaqvPI1O2Prz6pm+pZN+DitVCpvMTqgLA7oNo5zhlg== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hfpG0vNe; 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 D4F58606A332; Sun, 8 Nov 2026 14:40:11 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hfpG0vNe X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794148796; b=GePeFijHVKvAFXXJhQ6PSna43bawr3mYwjLUur0BigEk4GbEbckzPNC6A/aPtQrvXtCD UfaFbwRhbIrDB9iizb9lqg6+k9bj4yHDZ5Peiy6JRcsFMjMerSHEq9L6+QljUZTbQo6ps +Ct0teLdyU6lHVRHn5Orxfll9Sl2lQ9Bz6Kl7R5Ir2JIQhTbyiLBaVtaq3wrzSOTu1R+s UGB0LKkG5EpmBEn0Im9nb+QVMmVMIFSfD2gSsY1ItcAlVM4eS1Em8rfUKT4RxVCayruU/ KrWyPLwZJCI/ouFU5/02wQnJmpMnUg4MkM7KSeqHtZ6Ea03ZgzG4TikW2tAk83N3+HQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794148796; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=umoo2Lp9rUq60YFsX4JKM8uqEu+Er3Yh7U0wKuiM0Qk=; b=cboiNzR09Y4D9hwglDfjqoWWHvgQ+3b25kLp4+/ec7taqhuF7nuWBEL903PkiJuqgyCw T4RPvnz+wB0Q03d1d2WA9W7hHKvajsMMxU1qhRVqcE7gd7XAyBfseByE2UE448lClCChl wIn4grcvh/ARFQfI3iSyg0z7hLr02uxNokKrcQ10tahrvLhnL5OmxA4KroBCiGHy0dkOx vzs7w37e9R4CUqGLvLfJvRaFLjYxg2xDRVEET2MjMqqT3G+4WoOwoiby7owEtTGIn7Nf+ 8vtSUEl4AFBwFZ0zDkGwmZpCflEidABaoOfgxHFvkKjeUXkIhgEmgL2mo9DjllYbZ3A== 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=hfpG0vNe; arc=pass header.oldest-pass=0 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 B2C7A606A338; Sun, 8 Nov 2026 14:39:55 +0000 (UTC) X-Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794148795; b=CQUzYCzE7DqCq9BTNj6kch5R5SBMntyR3d2Gmd9qbFyafa6CNlKROKJihfO3Y8uaff87 ydr6feGKOsXD+Wt2bE+rCx2SIu3dhvIPAZ58vRKNd5XVxACdD97Zu8U6KEd2Uwm5CZmVL g0V3E71kYt59Ie0PyE9UCq2aTUyhWt4cZxthaE+jV2HBOkLoXWWFZ94bSggzXRI8STSTY 0kIoKnkdSBsMRvFuJszkl71nQhDgTV6LTt/DWUp2ebLSrKmlr2IBhTjeeBpOuyRKxyf/Y tLH0Rj3RX/W/yGNFdU/kzrM4h0+km6H12QmL2rJzFFscN+HAxXMNJFSFM0XWS9Uf1Pg== X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794148795; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=umoo2Lp9rUq60YFsX4JKM8uqEu+Er3Yh7U0wKuiM0Qk=; b=AOQMJAfpAFjW9ZIZw1rD6Qa1Flba+L9zbi/94DOnVysC37BCyaYYcBMOCi26FTmKdfVN BboFcZMHXYa0baoq8jQsEDAdYrToGIGIQ8fLooSQ9NYd6ad6zHFVhPBovbrJvWDgSj06Z wb8ODqmIkLBwWpKCRjwky3Qi8qcrQVBS8mPGGujJLmJR+1WbJ0RszJLXnMsnAPnKriCHK E9seTA7wsZp/d82r278UZ38xem94dsBYBArnB+ycA5I+KDT7V2MH0puMoFr3I0Q1CEFSV dRpTodFP7kMrB93mteyWk248PyR9pvBcc6uSP0qSc2iWoz5QjR6HTjMs4po1LoUw89w== X-ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 15F6D1F008A7; Sun, 8 Nov 2026 14:39:55 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794148795; bh=umoo2Lp9rUq60YFsX4JKM8uqEu+Er3Yh7U0wKuiM0Qk=; h=From:Subject:Date:To:Cc:Reply-To; b=hfpG0vNe+S9Jx5aSw0hBg7p88/9121tNdvVQyRvsmB7Xl6CKxH5Yuu29V8fUvlSDs n50onqQE5IfUtKngr0kLN3FModgseTU5BiDCu8ylHxM7VxyYY0kA+O4yzHBqjoo9CU bUZI0oYCjTuwbbLms/EaS0OLlclItp8qR57WVFMYh+dXuf28s/kxeaN0A8dD2UZ6uY EK2uiVWx6+FiionQYsBKE+vtIZ+mKg8LUk4BufcaHCXvX5yloqugjBvT9HriyTWvRA 5NXhgw0jpYBTD7LrUSGTM6kdbhaewo9/UtISxxbTG2jm9s517R/2bmOPmYObntq8zG yZQ781u8AZ5lQ== X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 6039B47FB7; Sun, 8 Nov 2026 14:39:53 +0000 (UTC) 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-B4-Tracking: v=1; b=H4sIALaJ8GoC/32NzQ6CMBCEX4Xs2TVtiQKefA/DoYUF1khL2kIwh HeXn7vHycw33wKBPFOAR7KAp4kDO7sFdUmg6rRtCbneMiih7lKKFPs44uCdYdviyaLOM5MWTW2 obmADB08Nz8fpCyxFtDRHKM8mjOZNVdw/923HITr/PfyTPIh/qkmiQK1yUVCmblrrZ9tr/lwr1 0O5rusP5Xx3w9AAAAA= X-Change-ID: 20261103-mtu-probing-series-a87b39fdbedf X-Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, panweiping3@gmail.com, netdev@vger.kernel.org, Yongjian Wang <echoowall@gmail.com> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794148792; l=1935; i=echoowall@gmail.com; s=20261026; h=from:subject:message-id; bh=19c4Gk3Gwmmdf6hcqazZwt4ILAXYtGIkiZQuAikm1yE=; b=lsncIAFuU5jy3vx7rFvzCCDrgzTHmMBJXO9pb8CuTOJIbro6eZmufAC0uCoBMgQMAujaU2d0m AhkcMvtSmitAqXR5SheoluhamBWjXdtlJYOE25fEXTuQJY3BI+yU6T+ X-Developer-Key: i=echoowall@gmail.com; a=ed25519; pk=9XP6JhqjjPsHCF6UZZZTeqTRnXIa4+ufggnxXtTJ+no= X-Endpoint-Received: by B4 Relay for echoowall@gmail.com/20261026 with auth_id=1323 X-Original-From: Yongjian Wang <echoowall@gmail.com> X-Reply-To: echoowall@gmail.com