🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25926

[PATCH net-next v5 0/2] ipv6: Cache pmtu for all paths of a multipath route

#25926
From: Vladimir Vdovin
Date: Wed, 02 Dec 2026 18:25
71 lines
14507 bytes
IPv6 counterpart of commit 7d3f3b4367f3 ("net: ipv4: Cache pmtu for
all packet paths if multipath enabled"), a production issue, flows
blackholing behind two ECMP uplinks; the IPv6 side was deferred back
then [1]. The IPv4 part of v4 went separately [2].

Patch 1 caches a Packet Too Big on every path of a multipath route,
patch 2 adds the IPv6 variant of the pmtu.sh multipath test and one
with paths of different MTU. Both fail without patch 1.

v5, after the review of v4 by Ido:
- the paths are walked for every caller, as for IPv4; v4 kept the walk
  to ip6_update_pmtu() so that a tunnel's mtu, pushed on its own dst,
  would not land on the other paths of the inner route, IPv4 lets it
- the looked-up dst is checked as before, a Packet Too Big at or above
  its mtu ends the update
- a blackhole fib6_nh is skipped inside the walk, from the Sashiko
  review of v4: a replace between nexthop_is_blackhole() and the walk
  could land an exception on it
- the IPv4 patch and its test went separately [2]
v4: https://lore.kernel.org/netdev/20261117193141.27004-1-deliran@verdict.gg/

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/
[2] https://lore.kernel.org/netdev/20261124153730.56549-1-deliran@verdict.gg/

Vladimir Vdovin (2):
  ipv6: Cache pmtu for all paths of a multipath route
  selftests: net: pmtu: Add IPv6 multipath tests

 net/ipv6/route.c                    | 122 ++++++++++----
 tools/testing/selftests/net/pmtu.sh | 253 +++++++++++++++++++++-------
 2 files changed, 281 insertions(+), 94 deletions(-)


base-commit: 41055751bb7b27c1317c679a9252baeebc4aa638
-- 
2.56.0
Technical Details
Message-ID: <20261202182545.19656-1-deliran@verdict.gg>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375994-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375994-linux-kernel-netdev=dewy.ru
From: deliran@verdict.gg (Vladimir Vdovin)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v5 0/2] ipv6: Cache pmtu for all paths of a multipath route
Date: Wed,  2 Dec 2026 21:25:43 +0300
Organization: Usenet Network
Message-ID: <20261202182545.19656-1-deliran@verdict.gg>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2030236"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:/a/eCsIWoV+fNvUmoQBgbl1TVR8= sha256:OawcRN+Ba4yeCOBR9+89C+upVdI9Fi9/IZMGHrzBxSo=
	sha1:KBNqdkiSGynHTDcR3Wktoji74RA= sha256:0mO2HqcbcsToGhFBdZx1+xniCH6YswuJtGEeZ+RbNQc=
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 CBDC01176F3; Wed,  2 Dec 2026 21:26:26 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.15
X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31
	tests=[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 dOl804tYhqCV;
	Wed,  2 Dec 2026 21:26:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-375994-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 089EA1176E5; Wed,  2 Dec 2026 21:26:09 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id B019260264A; Wed,  2 Dec 2026 18:26:08 +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=1796235964;
	b=uM0vzqFRb5Wqc6VBynXUnErnrNS7tRzgxqTAKtyLb7LzFJc3/ivY6an/qkzatBr2LMlm
	 eAmvWqPTUIQLFIiT69x4YMG2MZ9ajWK/ERG8Fvj0+HdwJhimUMKEyFz9DhMZXWM6kM2Tb
	 bTFlTTr7mwvblubMnRUJ+pnwJZlU7ZU8YpI/jmkdhegsW2Ndjqq1WDJpS9Br/d9cowvra
	 IJFccjBsJ3pN/UcqnBEOlLvSNIyCbdck8jU94oc8gf+TJGShu7mIS4+FLncTNjVupE5eh
	 9ApxZwOLIllNUwKrG7669E6YhIbUe9ygMvSjIcyHsx0kUyeuxuNMgLb6OmH7GDTNEgw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796235964;
	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-Details-Enc:
	 X-Proofpoint-Spam-Info:X-Authority-Info-Out:X-Proofpoint-GUID:
	 X-Proofpoint-ORIG-GUID:X-JNJ;
	bh=TzZv94MFflLyJSuqUqrzLPwC+GyYp6jxQSTPuhol5Kg=;
	b=raDnOTKHuF5qtATWy5FFzxQCzYi7y7uWWsWEi2xBasRxZADNaznbxtR/Y0Fm4fITGGgi
	 NfbpWgimUABq9jX42Fg7jMiOdAWCi9UF5YwB2EgDfQ8fvpvLL+Hhee8jl1Xr4tHikTVF/
	 v5WU9e2Z/BTp0FxsGwhEHPuVi7kOkQ6v/SVtqio7WBnJA7d0IcoXazXNrz5IPXnpC9c4q
	 PyB0CY3ItdjEqvj4RkleuunfHjjEvjHh2hXdxGOkcYwfVqVTlzzJr6XP6F7xOo+2k/xTq
	 TQe8TXgD3dYt5YN3XIn9yPkFY7Fc2mBJRutGNoLaIsSFrI4ub0cLNdx1CAXMkr0MF7A==
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="bN//oJak";
	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 B4F70606A339;
	Wed,  2 Dec 2026 18:26:04 +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=bN//oJak
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=57.103.64.106
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796235963;
	b=OPsA3G0cxmzs05FR9buM3fCnJf37vQyUbcrMABroeEPLLWIzmjJSm+QHViEHU6tBAn8j
	 X6K5rSKsBwzuWgrE70fcpwNtYFBOV3HPNBhpCr8yOd+ijoiQpaAtT0EvQPawmoHdNA9ST
	 gTXn/DcJT3tyrbpUlwLW0oq5aeaLSv5eF7Nv/d5T9RBimPCr4wbBC8nmNZXeIQgSUfypl
	 yAPZ+0YXPavB+AQQu1GBt1oh8TEYErIENhPUcFFsd25hNKCxrGhX+Vflp3SQlxBBs5ZMb
	 DVvMXig91xyhAJtEfrbBfo/cXi+UgGymKk+wcugx0vYxLmFF6KcsJ37b3KGMSLE9/7g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796235963;
	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-Details-Enc:X-Proofpoint-Spam-Info:
	 X-Authority-Info-Out:X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:X-JNJ;
	bh=TzZv94MFflLyJSuqUqrzLPwC+GyYp6jxQSTPuhol5Kg=;
	b=3R4hmcGTfSjJgsZq8O2eBy/h4FD/khLWau4jfXk5Nd65rvSMQyEk/CIT71Q7CgVF7ukY
	 0GliFgizQP6l+kXzmq/uUGvgnJ8LsBiS4yh2IDJk4RTu4VAdZwRxtCD7FF8f4JNznar/4
	 IsiRE+kXmZmmdAJF8g6dQshj+e4G74h+O5uSaI1wcBWjiRaI5sW+Fevg9AuSJP9ga7Jjh
	 4SLcJt+J+R5SOTYGNf3t+rM2qxuECLyhrXe8txwkQBIJwoCCEL8GmA+Ut/LBThEEjBEBH
	 edVyWKzt7a7g1UUCvGfebfN5QyDWMtjqJbgpeuZNBbhD8SX2FnywuE5wZmW0+DRH51g==
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="bN//oJak";
	arc=none smtp.remote-ip=57.103.64.106
X-Received: from outbound.pv.icloud.com (pv-2001c-snip4-3.eps.apple.com [57.103.64.106])
	(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 52B59606A322
	for <netdev@vger.kernel.org>; Wed,  2 Dec 2026 18:26:01 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 52B59606A322
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.pv.icloud.com (unknown [127.0.0.2])
	by p00-icloudmta-asmtp-us-west-1a-60-percent-6 (Postfix) with ESMTPS id D2C9518003D6;
	Wed, 02 Dec 2026 18:25:57 +0000 (UTC)
X-ICL-RepId: 01a23801-951c-711b-bc5e-fa0880e07402
X-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdict.gg; s=sig1; t=1796235961; x=1827771961; bh=TzZv94MFflLyJSuqUqrzLPwC+GyYp6jxQSTPuhol5Kg=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=bN//oJakJoxD7zAoO/RiRzG0noZGdbwRk8qPeDoDYricXzCPrijrnONoOQCrgPggQKrGerU8iHwM0sN/eur5so3OtW9PJACBKzcgtxEJwuLD8GVSLyFH4CUCvbnZbSamKnJ2JTu9DButkobXTpfV/uXJsEEybKPnmbUgNSXnDCbDSnxujOV1Gq9OSQxJT27pI7EzXoG8r5lUbGkbB5gDBJmDwZS5hpgwcCs5kf5W7v3Ogxiarh4SYRmlgihTVQ22Fw60mEWAdJXvvd5LWiUS23IAone8WW/Ic7qL2O4rW43ot5JSpCUqW6XL6vLmheTUoVGmT06Ofc7WIbnBGCjt0w==
X-mail-alias-created-date: 1621344842221
X-Received: from DelNac.mail.msk (unknown [17.156.192.29])
	by p00-icloudmta-asmtp-us-west-1a-60-percent-6 (Postfix) with ESMTPSA id 3DD9618003C5;
	Wed, 02 Dec 2026 18:25:54 +0000 (UTC)
X-Cc: netdev@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-Details-Enc: AW1haW4tMjYxMjAyMDA3MyBTYWx0ZWRfX5OKF6Xbqmjux
 uPiuUmmEyYNzl7O0qY4OU+X42NQUKbLF420hOldejAIW1vjqQM3SlswNnNNm8Kn4HbQ0BYC/crn
 /Syw/+D1hEuxD1noJLezPlEjuoOuObUxfE5bfnSeeDdjq8J4h+NnFIUBlxLDX1/EDx4qVhuX/wv
 qI4Mso7INCpQ0VXTBls3HRrNQqDMstvJb82hhbmEPKG/WNM68TsJB7rz0KC9hk0xsKA0XbiY1ZB
 vT+Ii55EooIYpPgUr1hdFBj4CNfbbUY539LR2PRGI4AwX/LNO6TNCLe77up2CnWdtQbf/938N5w
 SQTfT8HIuVchczmECcl52Ih619gnLG6t4nqTddSPIfgwmseoyTlVQPMB83eqCk=
X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDA3MyBTYWx0ZWRfX/xLvY7uoGYIs
 9un3VH9Q7MLcuI1I9J14HQqJnASTg8gA4xMsy3CO1wPF3T9SAOPJOWB/44vAxZuzPOiUujoE/p/
 0QF7ygPQ1EUUJMHpNrDJtlfPKO2E1V0=
X-Authority-Info-Out: v=2.4 cv=fOusTpae c=1 sm=1 tr=0 ts=6b1062b7
 cx=c_apl:c_pps:t_out a=aW9mcIavGNWWFvFFKOxBSA==:117
 a=aW9mcIavGNWWFvFFKOx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