🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15722

[PATCH net-next v3 0/3] ipv4/ipv6: Cache pmtu on all paths of a multipath route

#15722
From: Vladimir Vdovin
Date: Fri, 13 Nov 2026 12:22
45 lines
13113 bytes
IPv6 counterpart of commit 7d3f3b4367f3 ("net: ipv4: Cache pmtu for
all packet paths if multipath enabled"), deferred back then [1].

Patch 1 keeps the IPv4 fan-out from raising the pmtu of a path above
what it can carry, patch 2 does the IPv6 side, patch 3 adds the tests:
the IPv6 variant of the pmtu.sh multipath test and, for both families,
a multipath test with paths of different MTU. The asymmetric tests
fail without patch 1, the IPv6 ones without patch 2.

v3, after the Sashiko review of v2:
- compare the mtu with what each path uses now, not once with the
  looked-up dst, so no path gets a pmtu above what it can carry
- ipv6: keep updating a cached dst itself, the walk may not find it
- ipv4: Fixes: tag, Fragmentation Needed wording
- tests: MTU 1350 on the link to R2, so a Packet Too Big from R1 must
  not be cached on the path via R2
- tests: return routes on R1 and R2, hex flow labels, skip when
  "ip route get" has no flowlabel
v2: https://lore.kernel.org/netdev/20261110095903.84813-1-deliran@verdict.gg/

v2, after the Sashiko review of v1:
- update an existing exception in place, on every Packet Too Big
- don't walk the siblings of a fib6_info no longer in the tree
- commit message: the lookup in ip6_update_pmtu() hashes without
  protocol and ports
- new ipv4 patch, tests with paths of different MTU
v1: https://lore.kernel.org/netdev/20261017210508.71849-1-deliran@verdict.gg/

[1] https://lore.kernel.org/netdev/ad29493c-9e48-4a94-b327-e47af3a9d137@kernel.org/

Vladimir Vdovin (3):
  ipv4: Only lower the pmtu of the other paths of a multipath route
  ipv6: Cache pmtu for all paths of a multipath route
  selftests: net: pmtu: Add IPv6 and asymmetric multipath tests

 net/ipv4/route.c                    |  30 +++
 net/ipv6/route.c                    | 121 ++++++++----
 tools/testing/selftests/net/pmtu.sh | 281 ++++++++++++++++++++++++----
 3 files changed, 355 insertions(+), 77 deletions(-)


base-commit: d26955e57475434b59d43ba372b2a50d33d5e0ed
-- 
2.56.0
Technical Details
Message-ID: <20261113122237.88990-1-deliran@verdict.gg>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362626-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362626-linux-kernel-netdev=dewy.ru
From: deliran@verdict.gg (Vladimir Vdovin)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v3 0/3] ipv4/ipv6: Cache pmtu on all paths of a multipath route
Date: Fri, 13 Nov 2026 15:22:34 +0300
Organization: Usenet Network
Message-ID: <20261113122237.88990-1-deliran@verdict.gg>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1341677"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ofqo8cTSdO+ID/GyglTeWJXHUBg= sha256:q1FN8yQt7Cra6zyvQsQqLUZOlJAilAD98Nhf6LUOGCE=
	sha1:n+r/O3IdPEdZjQd4OdbqelxnIw4= sha256:GN2Yah2O4Mr/YZNZeLF72oUrAc3bfvQGgucpXC7Igg0=
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 7382911452B; Fri, 13 Nov 2026 15:48:34 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-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-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=verdict.gg
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 I43s6f3xUcdx;
	Fri, 13 Nov 2026 15:48:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-362626-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=verdict.gg
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 8684B1144FC; Fri, 13 Nov 2026 15:48:16 +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 AA1B310448F; Fri, 13 Nov 2026 12:23:54 +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=1794572570;
	b=t1cKNzZKtPluYujZNbZGtzvQaoZYTK2sk548yfQy/xrSHK8aZNZmvOW0o3Cj1adJAhuG
	 iTqIyMOB24l/xeFqye/Fih7Z7mhFSB67I4SedrXr5mbn1JX9wljkQUrkQ5aAIdItagWxD
	 2y/g4K5t+/49FH2KMgyZeBZZcrwcV4fLstaubUuoy4DGFyzZ298GsQvO3DnSYUqKuFlzj
	 uVq9NGK0T41Mrjh53fcTlOasBj6Do1e3yIG6z0XMAixr0MM8CqBQ9bpQK8DLBeh8BxXJQ
	 CDbyzmhXdIYEOkY2oS8wmGGtZxEtpk/cMTPXtd7JrlLWFUO7TL/4KLgIYidHc0wRt1g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794572570;
	h=X-Original-To:Received:DMARC-Filter:Received:X-ICL-RepId:
	 Dkim-Signature:mail-alias-created-date:Received:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:X-Proofpoint-Spam-Info:
	 X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:
	 X-Proofpoint-Spam-Details-Enc:X-Authority-Info-Out:X-JNJ;
	bh=bt0dRZvel7uCGiKOrOk3gqB3xIVVwQuehuV0zR22300=;
	b=yVOsvkfKvKPKPPsDfm7QBzylhsnCFOTtR9T0ZsK1cm9HW9jEcKPsJxy73rojzlD9rZqF
	 f1ODFBX6axfuw+PaqF7ttC3TF/c938s/bcwxxd8qhPwoQ0vvfMqCikXD7us+Ti+x9qKQ8
	 /ZHb3qiGq+Babd0Dh4PISJDueIpVYLDlZhJHOSem+laJ+lTD2vidzsXgcxA6hDtpOPzpl
	 IrGC6YA1JwiMgu1L3iwIffvyti1n3MuIlRH8yHnGOvOE9Is5bKOCbDWNEzYbjRVXtpjVD
	 tTFzs3+0juRaM1PCrOdksbkxi87vxa5l59uaapJGZK/oogmI7VK+7WlJPC6n3iiNULw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=verdict.gg header.i=@verdict.gg header.a=rsa-sha256 header.s=sig1 header.b=KbIVuJvT;
	dmarc=none header.from=verdict.gg;
	spf=pass smtp.mailfrom=verdict.gg;
	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 1604860A262B;
	Fri, 13 Nov 2026 12:22:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=verdict.gg header.i=@verdict.gg header.a=rsa-sha256 header.s=sig1 header.b=KbIVuJvT
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=57.103.71.23
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794572569;
	b=OH6lpHl1sghHkqyLuqWtnWnx1PvrCZihyP+xONi+Ofcr1nX49PX0QvqcXigrRFkDvyvZ
	 ThggVn6D7fOn4pOkIywfE9dL0872QKC+Ut6IwKWq5MM913OCHNVSXoqlLMM9b3FJyvF9C
	 6DrgnW7ZkXSr0D7u6WoBdeMHt1NnvO0NPveJsStcWAmzp15gwzMTH3gGl6UtFaUPhKekD
	 DMdDNSHOJVuZyq4Wyu2SnkHAyzJJX0VKAwrzvhj2OFOmwDwKeu5u5EQmwSVr4o6JbItId
	 OT2vH7ApOrEWn9YWVEqjv8LihIP2KoG4SsmKocQWkR/pLZVlqX1N0P0YEGr9lJDQqYg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794572569;
	h=DMARC-Filter:Received:X-ICL-RepId:Dkim-Signature:
	 mail-alias-created-date:Received:From:To:Cc:Subject:Date:Message-ID:
	 X-Mailer:MIME-Version:Content-Transfer-Encoding:
	 X-Proofpoint-Spam-Info:X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:
	 X-Proofpoint-Spam-Details-Enc:X-Authority-Info-Out:X-JNJ;
	bh=bt0dRZvel7uCGiKOrOk3gqB3xIVVwQuehuV0zR22300=;
	b=rzQFMbnBMUfj3NjdYBIFzg1eO6e86PMGNMs0FxgcKjdvxX0StNVDosMxAXmhg9D0PB+s
	 cv3NmsppO8XfFm22R65DFSV7UrR8dtPVMskjLwAe03a75lONTUQre7ib/teegu14qlzPy
	 VldRAAOJwKNIzKAU9bQCmKnhR6PAZlDLQdDqJJ/01LhYWU72qZNAk16go8M6MuVDvWtAR
	 kAJI8RGb5SHOxPthI84Ajx7OWxckP91wyLPN+HyvYl6rtN4syTo3ABpvrTP1j/PRVomXa
	 8lftKcGCd2sPZkgquX13zsQ/loynKYBQXs6IrPGgTf9kLHenyl4LysYCzUMh1Oc+vFg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=verdict.gg;
	spf=pass smtp.mailfrom=verdict.gg;
	dkim=pass header.d=verdict.gg header.i=@verdict.gg header.a=rsa-sha256 header.s=sig1 header.b=KbIVuJvT;
	arc=none smtp.remote-ip=57.103.71.23
X-Received: from outbound.mr.icloud.com (mr-2005l-snip4-11.eps.apple.com [57.103.71.23])
	(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.subspace.kernel.org (Postfix) with ESMTPS id 0F3E960A260E
	for <netdev@vger.kernel.org>; Fri, 13 Nov 2026 12:22:47 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0F3E960A260E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=verdict.gg
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=verdict.gg
X-Received: from outbound.mr.icloud.com (unknown [127.0.0.2])
	by p00-icloudmta-asmtp-us-west-2a-100-percent-6 (Postfix) with ESMTPS id CF70118002ED;
	Fri, 13 Nov 2026 12:22:46 +0000 (UTC)
X-ICL-RepId: 01a1d4dc-4083-7683-8f3f-5ecbb7eb1538
X-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdict.gg; s=sig1; t=1794572567; x=1826108567; bh=bt0dRZvel7uCGiKOrOk3gqB3xIVVwQuehuV0zR22300=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=KbIVuJvTWDzRrxv0TtF0zTvRlD329H308juooyl97wmdj7dzJSMyC+0D6aJD+X+f4XgKlOnMml5ps9CFnC7crUFdXCDB1LESGaTWOHaz3gGzW4bCECbEv/E48cqPTX78zD0bfcww9kcURdytXUl/8SptFzauDjt//7WvhDgrzQ+lHkOdS09mnd6XYRtgf+TtzliW5G7rFb3HybVrxQMgNObKQJWdakuTtHjRVYke9wmfOY4fDHjPeWTx2DEoA8ZrDlrpplIsRphxOvCbZkWxM4o06Z2dXM6YcQ2dSsqF1LrvdXoLrY+PYvMv3fVhAlKWdlsqrFf5xqNHwSNmz9a0Cg==
X-mail-alias-created-date: 1621344842221
X-Received: from DelNac.mail.msk (unknown [17.156.200.36])
	by p00-icloudmta-asmtp-us-west-2a-100-percent-6 (Postfix) with ESMTPSA id D54831800280;
	Fri, 13 Nov 2026 12:22:43 +0000 (UTC)
X-Cc: netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org,
	Vladimir Vdovin <deliran@verdict.gg>
X-Mailer: git-send-email 2.56.0
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-Proofpoint-Spam-Info: AW1haW4tMjYxMTEzMDA0OSBTYWx0ZWRfX8HtkCB4+aRuh
 N1DFs7tkNlP9aUpqhJDn+FI6BAGNxHQuUKMgcvyKtLV8nGNWQ3jHLaY23fBaUPQ/c+T1BaBatP+
 Ln4wRMHOKiLoAU+l9fDsL1XsF/KVCt8=
X-Proofpoint-ORIG-GUID: cxBUL5emJaNB3-UsmY_rW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