🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18063

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

#18063
From: Vladimir Vdovin
Date: Tue, 17 Nov 2026 19:31
62 lines
14051 bytes
IPv6 counterpart of commit 7d3f3b4367f3 ("net: ipv4: Cache pmtu for
all packet paths if multipath enabled"), deferred back then [1].

Patch 1 checks the mtu of a Fragmentation Needed against each path of
the IPv4 fan-out, not against the looked-up one, 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 IPv4 asymmetric
test fails without patch 1, the IPv6 tests without patch 2.

v4, after the Sashiko review of v3:
- ipv4: each path checks the mtu for itself, the early returns on the
  dst are skipped when it was looked up for the Fragmentation Needed;
  a locked mtu goes no higher than what a path uses, a path with a
  locked pmtu is left alone
- ipv6: walk the paths only from ip6_update_pmtu(), where dst comes
  from a lookup; sockets and tunnels update their own dst as before,
  a tunnel mtu no longer lands on the other paths of the inner route
- ipv6: skip a blackhole nexthop and siblings not in the tree
- tests: ping with ICMP sockets, a raw socket handles a Packet Too Big
  a second time and could pass the IPv6 tests without the fix
- tests: the IPv6 addresses on lo are added with nodad, the pings
  through R2 are 1280 bytes to stay below the 1350 link
v3: https://lore.kernel.org/netdev/20261113122237.88990-1-deliran@verdict.gg/

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: Check a Fragmentation Needed against each path 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                    |  90 ++++++---
 net/ipv6/route.c                    | 138 +++++++++----
 tools/testing/selftests/net/pmtu.sh | 290 ++++++++++++++++++++++++----
 3 files changed, 418 insertions(+), 100 deletions(-)


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

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365558-linux-kernel-netdev=dewy.ru
From: deliran@verdict.gg (Vladimir Vdovin)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v4 0/3] ipv4/ipv6: Cache pmtu on all paths of a multipath route
Date: Tue, 17 Nov 2026 22:31:38 +0300
Organization: Usenet Network
Message-ID: <20261117193141.27004-1-deliran@verdict.gg>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2409951"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:oNPuRzNsJhUU7O57p9xEaAOEeFA= sha256:G9aq8Je/1wYZ6HNoTveMufJX/Wv1Ktj2ZZEcDtZ4Hwo=
	sha1:auBmSHCGV1xNxXpHoQsdPVhC7/I= sha256:u6f94eadVzUh0Izt99mSqzDLWDoUsM6cd4UoCvFfwpw=
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 316D4115055; Tue, 17 Nov 2026 22:32:20 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 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] 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 IqMDlJ8y5QZS;
	Tue, 17 Nov 2026 22:32: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-365558-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id E1200115029; Tue, 17 Nov 2026 22:32:00 +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 77DCA30004; Tue, 17 Nov 2026 19:31:55 +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=1794943914;
	b=rLe2PoojCWiCV8g7Fts89wqWIU09BZdHjFSyJXxnSu7bHMosMmVCZf0iDPAQAvtMC9mw
	 a9Xv+0Uzw70VKWWNRznUHZbMx8st9fn4pQr+n1DT6zjJ9hW5d7rPIW/yFv8Zv7QHyzZaD
	 e9MpK0QWn24WJavfkbXU9jQDtkv6ZwrGmqOLeGJiWAw7zCGmQWG+f94KRDR2uQ7bujAoB
	 64gGfEJUGUm6VFVilh8Wq687nbtToxzYuYNXsdMLAahRRv0GP9xHTrDh09MGnrvW3Fgod
	 dfPjXJitn0oFgCNpBqy4zLRgAEQi9yhqOMqIRgYyPTw2tg/bWcoftZZd+abzBpL2VVQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794943914;
	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-Authority-Info-Out:X-Proofpoint-GUID:
	 X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Info:
	 X-Proofpoint-Spam-Details-Enc:X-JNJ;
	bh=tupyPMS6Ppn0golo5XSyKLtR6YNSo+CWY3qgLUPBzKE=;
	b=1Sr5qeISMpGg+LwUDuwkg3hlSkixSueQN9vVm56rbk5ee/+0LkrLk+JTgQWyH0UCuwcE
	 GOfDjTzrhfU3soH2/9hQhdMX+PCak+kbUmUC8YnlKZMGH/6olGAmwhjgEl1sSrgXc8ZGM
	 kVMVUhR/U9c8kBHZkjskRikzCUv9nuOgj5D7ymFrwPqbfDmPZJ01w6ap7DsmWmb+dyEao
	 bj5GpyZg9QmCGWq7I0cTcsZsKhQUcmufiLyiz+BBO0fvzkLaAwxDa+3ZhM5e//2Srl5vT
	 u1b5YOHEBED++TDt6anjfo5XMho2wuiHaiz6SLoNJkdTTM73xdcecjKtGlH6g6ZDn9g==
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=Ih2ttrqP;
	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 D0AD2606A339;
	Tue, 17 Nov 2026 19:31:54 +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=Ih2ttrqP
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=57.103.86.161
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794943914;
	b=k3NEVkirG8bFh1X/ueSGtUnCAvyXJpTjMMsSMAEigYMtjAC9lZABWqD1XDYtnZa6ZcWw
	 NE6EoHO4Gxm4f0ASVo5Hxxppwl8xEpqiZ8X4HFgr3XaffL1q12uNis+23uyeb8asYTF7m
	 2IAcdAP30MVrVR00gYpW+f6SVhFwf/Vk5bweT4sgRZfcaTo9s6xGsEUM+UJoLwmAz6WD9
	 tMmP9tSiMGULHy36GMXa56yH0YIjCjklywl17qsx6skk6+KHXjhCdzllas6W4f7Pr+vsm
	 y3OEnV5ScA8HbipjeCBLeibX5ty+ZIUZC46/f8f8uU0IAQQuOy0XgWGU3BSWODPuB4w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794943914;
	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-Authority-Info-Out:
	 X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Info:
	 X-Proofpoint-Spam-Details-Enc:X-JNJ;
	bh=tupyPMS6Ppn0golo5XSyKLtR6YNSo+CWY3qgLUPBzKE=;
	b=IL4M7EkvDXVNugv7tcI1n2cqRUySTayudU5qrdWLiM7jvmdBOEBC2KGtaVdSvX8loP0v
	 YxD1fpTVs1thHgBpoOIt9y4ZCxPWeT0Z4fVmNMOyFkblE86+Na0E7P/XUH7lTqy9S/gHI
	 gJTpnBm91eCwg+uhNSwRgg3HYTKsKgPx8Y7gldPGHTtaEX0dHEOoU9g/Gxv2NCjU6LbDp
	 zUM74cE9dhqeYGMQm8q9b/zRiRiXS/Ss43JlPYXv7MbKTJSQ3iVN2hnp0jsYoUqF0uI8m
	 Vvd6ca4bNqYPgH3F9+ua6ybJREafIp69Lj/8jlA9bZfvQ6Wgr8Dgwpmtqx5fIOW38LQ==
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=Ih2ttrqP;
	arc=none smtp.remote-ip=57.103.86.161
X-Received: from outbound.qs.icloud.com (qs-2005c-snip4-11.eps.apple.com [57.103.86.161])
	(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 D8E2A606A31C
	for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 19:31:52 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D8E2A606A31C
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.qs.icloud.com (unknown [127.0.0.2])
	by p00-icloudmta-asmtp-us-east-2d-10-percent-2 (Postfix) with ESMTPS id 9641F3000142;
	Tue, 17 Nov 2026 19:31:50 +0000 (UTC)
X-ICL-RepId: 01a1eafe-8209-79a5-981c-e4fdfb0e56a6
X-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdict.gg; s=sig1; t=1794943911; x=1826479911; bh=tupyPMS6Ppn0golo5XSyKLtR6YNSo+CWY3qgLUPBzKE=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=Ih2ttrqPnDmpiBxn+/eAIutck6i6j7u7rZqgPk9BKxQiQBVwiMavdAh2ecAnfXh4CBxa4xFNH+QIHapSdpPbmKWB3IOI7KJ1bNScKgXpRtLJL7iBM3GzGICy/1bHvdBycZIDlSS8I7njhLfZ5KnhvC63XIVMzWJ7hZkTXqR8z1o7f3pfTdwPO3ciYL3yjVfKHgVRNG0YFOp2dQHXwQnf7IyvW1w7Als9xrz1dqNEFCRqyatznmEKIpsi3/EFH0m5PAnlA2I+2rCuw0jFlERl7oN5VWKGUKglCCqHJHq7zLyAoCMLXpVgbXJOUIaizL7kcXuwwpwOAPz6UzJqpniV8w==
X-mail-alias-created-date: 1621344842221
X-Received: from DelNac.mail.msk (unknown [17.57.155.37])
	by p00-icloudmta-asmtp-us-east-2d-10-percent-2 (Postfix) with ESMTPSA id 1DBAF300019B;
	Tue, 17 Nov 2026 19:31:47 +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-Authority-Info-Out: v=2.4 cv=YOsKWhGx c=1 sm=1 tr=0 ts=6afcaba7
 cx=c_apl:c_pps:t_out a=bsP7O+dXZ5uKcj+dsLqiMw==:117
 a=bsP7O+dXZ5uKcj+dsLqiMw==:17 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22
 a=HxOO8S7qDNDRVQTpMkN7:22 a=6uOZW5gG_GFTgJ11RZm6:22 a=VwQbUJbxAAAA:8
 a=bKHCur5yDY6pmIDHOTwA:9
X-Proofpoint-GUID: bFUYGdxpfn2VICFhM3OglcjlmOYcU8Dd
X-Proofpoint-ORIG-GUID: bFUYGdxpfn2VICFhM3OglcjlmOYcU8Dd
X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE3MDA3NyBTYWx0ZWRfX9GsAPuHikMFn
 YPexFgrmmH6KHO3Hi7cWq8G760J1OV0kmNfApr3/qGU5Io9Z+mGTNw+RL33ifkbCu1v6T5MvTnq
 Ivh3G6xbZfe/tRgXBYMxPRw3vtWQ8v0=
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE3MDA3NyBTYWx0ZWRfX5Cx0vPZc+YHN
 /d1cO1Cw/O+hOxdJJU9zKFrDjD8mLxrQ50kq1VWRp6Qj0UkdEL1rIS58fNjIaQfoQjr7iVxs68W
 n6gHJTf/UQn5Kj9GWGM/BcFaAjOKQG059AdxpuwksQzF1GAOw1gVxHBvvo1zZeBhAUWEGu7E8Pw
 OpHYN59tqr4cOzbS2GvGFKstSQ2vGQfW4HhNZ+qNEd6tDw9OHMHmQoI6COo1so+drYVCv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