🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8816

Re: [PATCH 0/3] net: ioam6: makes IOAM insertion transparent to IPv6 ECMP

#8816
From: Hangbin Liu
Date: Fri, 30 Oct 2026 08:12
65 lines
10658 bytes
On Wed, Oct 28, 2026 at 01:45:28PM +0800, Hangbin Liu wrote:
> This series makes IOAM insertion transparent to IPv6 ECMP, as required
> by RFC 9486 (C2): a packet carrying IOAM options must be forwarded
> along the same path as the identical packet without them.
> 
> Patch 1 fixes the transit side: hash policy 0 hashed the raw IPv6
> nexthdr, which becomes NEXTHDR_HOP once an IOAM Hop-by-Hop header is
> inserted. The policy-0 key (and the ICMPv6-error flow selection) now
> uses the nexthdr the packet would have had if the Hop-by-Hop header
> carried only IOAM options and padding.
> 
> Patch 2 fixes the injecting node: the ioam6 output re-lookup on a
> destination-cache miss hashed the transformed packet's NEXTHDR_HOP
> instead of the original nexthdr (inline) or IPPROTO_IPV6 (encap), and
> rebuilt the flow keys from the outer header only.
> 
> Patch 3 adds selftests/net/ioam6_ecmp.sh, covering both places: a
> transit forwarder with a multipath route, and an encapsulating node
> compared against a plain ip6ip6 baseline.
> 
> The issue was found while reviewing RFC9486. It can be reproduced and
> verified by the newly added ioam6_ecmp.sh test.
> 
> Tested with:
> ecmp_rehash.sh
> fib_nexthops.sh
> ioam6_ecmp.sh
> tcp_ecmp_failover.sh
> forwarding/gre_inner_v4_multipath.sh
> forwarding/gre_inner_v6_multipath.sh
> forwarding/gre_multipath_nh_res.sh
> forwarding/gre_multipath_nh.sh
> forwarding/gre_multipath.sh
> forwarding/ip6gre_inner_v4_multipath.sh
> forwarding/ip6gre_inner_v6_multipath.sh
> forwarding/router_mpath_nh_res.sh
> forwarding/router_mpath_nh.sh
> forwarding/router_multipath.sh
> 
> Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn>
> ---
> Hangbin Liu (3):
>       ipv6: route: consider IOAM options in ECMP hash policy 0
>       ipv6: ioam6: use transformed packet nexthdr for ECMP re-lookup
>       selftests: net: add ioam6 ECMP test (RFC 9486 C2)
> 
>  include/uapi/linux/in6.h                  |   1 +
>  net/ipv6/ioam6_iptunnel.c                 |   4 +-
>  net/ipv6/route.c                          |  67 +++++-
>  tools/testing/selftests/net/Makefile      |   1 +
>  tools/testing/selftests/net/ioam6_ecmp.sh | 349 ++++++++++++++++++++++++++++++
>  5 files changed, 419 insertions(+), 3 deletions(-)
> ---
> base-commit: 5d7f3375cd574fc83f0cd30839b21455c0e79ae2
> change-id: 20261020-ipv6_ioam_ecmp-ae4ef0a4bdae
> 
> Best regards,
> --  
> Hangbin Liu <liuhangbin@kylinos.cn>
> 

Sashiko found some issues. I will fix them and post new version.

pw-bot: cr
Technical Details
Message-ID: <auRRYzF8iExhcVZp@bogon>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353643-linux-kernel-netdev=dewy.ru
References: <20261028-ipv6_ioam_ecmp-v1-0-9b6715b6f4c0@kylinos.cn>

Show 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-353643-linux-kernel-netdev=dewy.ru
From: hangbin.liu@linux.dev (Hangbin Liu)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 0/3] net: ioam6: makes IOAM insertion transparent to IPv6
 ECMP
Date: Fri, 30 Oct 2026 16:12:19 +0800
Organization: Usenet Network
Message-ID: <auRRYzF8iExhcVZp@bogon>
References: <20261028-ipv6_ioam_ecmp-v1-0-9b6715b6f4c0@kylinos.cn>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2188510"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:PtuFt5teOxPjPF1uTLYvluNCCXA= sha256:HMzHuCMgt3a0Icd/N0wgOaFVY8u0C8I1qqguTasT03E=
	sha1:4MV2MXr4WsuKHDT0MeXRzO1pnNg= sha256:MrFdGTC40svIAfqdFz8KLYNtoDjE06/PnyuJ1/kIpGE=
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 2C1A5125C8A; Fri, 30 Oct 2026 11:13:15 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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.25,
	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 (1024-bit key)
	header.d=linux.dev
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 zAlHU7baaxHY;
	Fri, 30 Oct 2026 11:13:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353643-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 44A24125C87; Fri, 30 Oct 2026 11:13:02 +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 A52D12B867; Fri, 30 Oct 2026 08:12:40 +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=1793347960;
	b=h4fHHQcrbMTZd9Hs4yydV4fcy7z6T+XCDFU8LYuLNUIuZ84nG11wOI9jeAkv2bxQpdNw
	 d1STThhN7RFE6C4+x4X48iKSY0PT7wO85ve2sRC7DfUmvaHxw3jdoxGQTLQ0mbFR0KW2X
	 XJgNlbWD+iz/SADbhs1wD9FGUUD/qbP7+1/0Wd5Xof0xWDTdtENik/H3RnFM/HmPrk53n
	 iQeIsE8DLkeQowyrgaESiva+adisKWjjywHCMIb9/CRTksaw0QV8vlIYCeRtwHOlG42LD
	 i9lFzCq0ClYC+fc5hLBkrCtjd+l9GkWlFKlgJE7qaJSzdkhp2xdFf1dywUnS8lPnttg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793347960;
	h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature:
	 X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow: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;
	bh=1eOarHzAsENVZMHKn6FEU4kOA/5SkTXSfgR+jYQ2Wck=;
	b=MRRQPe1PpNL/5V1JBbtKuwkiWFMP9sqR1z+LdyF6uWXWn7Jb122w9PjW5wBPfPthOHAE
	 CRKeyFn2XxEyIYYQPUMql2WeYoYbmIRwgQYv5czuR0M0sQ14AHx7SWz6P0uuEK/hKUumQ
	 0hhiXeh4pymqAs0jbkFNQ33ziM4Y6oTaASUWh1V6hT5FCnftolvmp8gIKspMe+7j5lBdx
	 39buxHcxT7KAcEbIjg8Avs55raSTkzUXeyI3WdsZWQatyZ8MZ/WmQW6QlPsuLzvD7+9M7
	 ePxqNfthGFTc2sCXHKWSki/gLEklgWeL4QOdxbytfNElTvJSUXC9WzEQ1s3p8m4+K3A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=CFU5B0tc;
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	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 6D4C5606A32C;
	Fri, 30 Oct 2026 08:12:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=CFU5B0tc
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.192
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793347959;
	b=rU01MrlS1+W2PIf65axPfja3A35kvOVTNK/YKr66Wy9cljCLD/RQOBa8Cn4kPjl3YcJr
	 rogiNionN/5qLLCrBzpH0C1J24TCyWKkzXKJ8MuvwmBygbNYMhQexkHwwt7m+fRnbRtUt
	 CoDWVRPaC87C3rlKbOioWf4XmgXCLDgwQ3akd6jROVj+UQErnZtbsL/+zkjFZuoRDSa69
	 CvXB5fgrPNP2XRkyrFQ+qJl2rIQiNfkkGkPXktC2N6hsp4y3o6X+nXLUIFodCQyEQPLxB
	 sot/hpTDsrlXGeL4+Nq+sHa77JO9bPpNev1v/StCTE345m1c/hlurwzh2nA7X6nRZug==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793347959;
	h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received:
	 X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=1eOarHzAsENVZMHKn6FEU4kOA/5SkTXSfgR+jYQ2Wck=;
	b=eZtGyD8cstGJiPX8p3lXqAhU3EWnluZK8qV51KI+ELX6hegnye+HtaMeZCSVF2285k/9
	 YWdz36/HpTw1HLed3QNh/XlFGlTOk6HkCUc24fxUZFPXpiFLvltJB6+RrCBU+z89KXYIj
	 7ZjyLTDLtZVLImUuWEuRblkvv4A6OufsWIRRoHnw/dZvki6tYXead+rwNSLR2Dea1Nqk4
	 0kWbVwIIyDcGjDMZQV1XZpU6FePkffEXD17WzM1YuycGXN2Ys1eCegJ0ZDwPZwttAESNV
	 gO6cYnoEtboclw1w2ZzTwxKB7nA7xym/2cv0hRJuYNHEX/c0b1WxpbM7q/3/bSrOU7g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=CFU5B0tc;
	arc=none smtp.remote-ip=91.218.175.192
X-Received: from mta0.migadu.com (out-192.mta0.migadu.com [91.218.175.192])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C409A606A31D
	for <netdev@vger.kernel.org>; Fri, 30 Oct 2026 08:12:38 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C409A606A31D
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev
X-Envelope-To: netdev@vger.kernel.org
X-DKIM-Signature: a=rsa-sha256; bh=6R09/GlFusOPFb6unSV/Xj0uyriwOdbAv2ijaqmAJX0=;
 c=simple/simple; d=linux.dev;
 h=from:to:subject:date:message-id:mime-version:content-type; s=key1;
 t=1793347956; v=1; x=1793952756;
 b=CFU5B0tcSto+raXKFA6eoXJPcFOBtRF4gllgF2A5Z9cUkrC+pPT7XSxUXBECD3BIA6ImP5Q7
 QS/k2yT/QThyaAa0jXzw/nvUjXIbdC9YNtrpcmvd2iVH02J4io74MiQpQm1lVuxVthsF35LbO5u
 yA8QN6GPYLKUtSvHj5a9Ijlg=
X-Envelope-To: netdev@vger.kernel.org
X-Received: by mta11.migadu.com with ESMTPS id 28f7219672ac7ce9;
	Fri, 30 Oct 2026 08:12:36 +0000
X-Mizu-Trace-ID: 28f7219672ac7ce9
X-Migadu-Flow: FLOW_OUT
X-Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	linux-kselftest@vger.kernel.org,
	Hangbin Liu <liuhangbin@kylinos.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: <20261028-ipv6_ioam_ecmp-v1-0-9b6715b6f4c0@kylinos.cn>