Article View: linux.kernel.netdev
Article #18280Re: [PATCH net-next v3 5/5] selftests: seg6: add PSP flavor testing for SRv6 End.X
From: Andrea Mayer
Date: Wed, 18 Nov 2026 02:57
Date: Wed, 18 Nov 2026 02:57
31 lines
11368 bytes
11368 bytes
On Wed, 18 Nov 2026 08:51:16 +0800 Hangbin Liu <hangbin.liu@linux.dev> wrote: > [snip] > hmm, Not sure if you mean to add a ip rule for the ingress route? e.g. > # ip rule add from cafe::1 to fcff:4::af1 lookup 100 > # ip route add fcff:4::af1 table 100 encap seg6 mode inline segs fcff:3::000e, dev dum0 > > Then on rt3, we got > IPv6 DA=fcff:3::e | extra SRH, SL=1 | Policy's SRH, SL=2 | Payload > after action End, rt3 send > IPv6 DA=fcff:4::af1 | extra SRH, SL=0 | Policy's SRH, SL=2 | Payload > > But here the fcff:4::af1 will hit the ip rule and do encap again, which will > be a loop. > > Do I missed something? Hi Hangbin, No new ip rule is needed. The rules that send the SIDs to table 90 are already there, and the route goes in table 90 of the ingress router only, for the first SID of the Policy (rt-1 and fcff:3::400a for (i.a), as in my reply to your previous mail). After the End SID of another router (rt-4 in (i.a)) consumes the extra SRH, the packet goes on to the router of the first SID and does not come back to the ingress router, so there should not be a loop in this way. Ciao, Andrea
Technical Details
Message-ID:
<20261118035723.e842bf3a2f0921779ab1c087@uniroma2.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365839-linux-kernel-netdev=dewy.ruReferences:
<20261112-srv6_flavors_endx-v3-0-c9177bbbd965@kylinos.cn> <20261112-srv6_flavors_endx-v3-5-c9177bbbd965@kylinos.cn> <20261117035021.e724668d726ecce54e091288@uniroma2.it> <avwUzLyWxZl9cBIX@fedora> <avz2hH9T_5OOuHbi@fedora>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365839-linux-kernel-netdev=dewy.ru
From: andrea.mayer@uniroma2.it (Andrea Mayer)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 5/5] selftests: seg6: add PSP flavor testing
for SRv6 End.X
Date: Wed, 18 Nov 2026 03:57:23 +0100
Organization: Usenet Network
Message-ID: <20261118035723.e842bf3a2f0921779ab1c087@uniroma2.it>
References: <20261112-srv6_flavors_endx-v3-0-c9177bbbd965@kylinos.cn>
<20261112-srv6_flavors_endx-v3-5-c9177bbbd965@kylinos.cn>
<20261117035021.e724668d726ecce54e091288@uniroma2.it>
<avwUzLyWxZl9cBIX@fedora>
<avz2hH9T_5OOuHbi@fedora>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="2488775"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:eCPTkjzLoe26q+viEbl2x/6clE0= sha256:aeUitPBOR5xt9fo1oViM8s3vlHde/fmsRCI1aMOfako=
sha1:xcDNDCwc3GezoS5BqnIuyOqFcyA= sha256:ZH2aBKK4yhWja2fBUJFGwIoxDSu9k14I8djL7ldRpuo=
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 B6DEA115178; Wed, 18 Nov 2026 05:58:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -4.774
X-Spam-Status: No, score=-4.774 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, NICE_REPLY_A=-1.724, 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=neutral
reason="invalid (unsupported algorithm ed25519-sha256)"
header.d=uniroma2.it header.b=DU/j1e/T; dkim=pass (2048-bit key)
header.d=uniroma2.it header.b=Rs5PeYNQ
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 CbedleQXpaxE;
Wed, 18 Nov 2026 05:58:37 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365839-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=uniroma2.it
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id E3599111D40; Wed, 18 Nov 2026 05:58:23 +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 0360F3C777; Wed, 18 Nov 2026 02:57:58 +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=1794970676;
b=xmGVs1IlefiZDfrKvE82MKpPb4OsmobY1KrtGcOxOzD39hwpgfLsESyPLuFN3X6OIGqy
vPlQLDtaDgp7GNrDhPWshrlXr/QRv1ZL/sIx09pzLzNexaoffin9sE++IGa+Uf6xWBmMB
Hte/WyTts6Fkcnin6EdIsHvjkz5nsLbWQIx6ITSs7iiYdMA8ylik8S3jNvvawxJFSGx0E
FxljnlfvJeAd3ksVwCECNVpySeDxG2T0BDze4k8h6v2x8q2B5uxmgiWbKebnK0UvlIZmH
6Z4G8BoGKHWnFc1/Je/edujxmQz5ZYFshKyzUmOK5poDe1ITXtfQl2Wp/AR3uCSaW9A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794970676;
h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
DKIM-Signature:Date:From:To:Cc:Subject:Message-Id:In-Reply-To:
References:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:Mime-Version:
Content-Type:Content-Transfer-Encoding:X-Virus-Scanned:
X-Virus-Status;
bh=Zz6iuXsbflDbublwbwpSIrgu8Ro3WRY197OMR4QSr5E=;
b=eFAxyi3+CB11gC9lmdoTKHF/WjhwHz7UQmUaD4JmU20Hb+sMbuF6podv77eibA2g4MSF
6hOmjjYLwMuPDPfUFyW1AuVXlmN16VLSnHxAoU3zwBwFcycHAE3hbNvb4krMDk1FPzmMQ
JYxZpmcqfhnYIZCUWOruF18HCczS/ZHKvWBMQca9b9GMV7gGFWaQn40Han5n8vx+9pOIa
3A54LT+zLogU/vXunK9mHPSyAfuVR82I5jFLCyv1aHQBFjaPAwOwGBPsiRvf6PHoNqOBy
Px+Wn1pmGGCHUPK3QBNAW6EO9BXgam5/AWrbzXITG1Fi5SoIwbKbPhz+8nITKM8RkeQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=ed25519-sha256 header.s=ed201904 header.b="DU/j1e/T";
dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=rsa-sha256 header.s=rsa201904 header.b=Rs5PeYNQ;
dmarc=pass header.from=uniroma2.it;
spf=pass smtp.mailfrom=uniroma2.it;
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 10054606A32C;
Wed, 18 Nov 2026 02:57:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=ed25519-sha256 header.s=ed201904 header.b=DU/j1e/T;
dkim=pass (2048-bit key) header.d=uniroma2.it header.i=@uniroma2.it header.a=rsa-sha256 header.s=rsa201904 header.b=Rs5PeYNQ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=160.80.4.37
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794970675;
b=tkA6JSPLAOlLNpP+xohkadZkTIJZ/9Lu1HSf/+ljfsUVbwAnk5iap1NUubioXdMo1nve
XN5w1oZ7lUhMkgMcBce9xMzn75xqQuK2q3q3r/Re2iEfFh1iR0PXYWK3i1CubfJiR5k9N
bevbTCWZHD7Yo2VB3RtS1laqDLteLXXdE0PgRAqHBIQ4xMJYxoay3hRjNjkbTlkPgdXvm
hGdP++uAN13JGx63b4HPyMVrdW4uhAR/AnBnTmGsNj0r0rxPaE+1F4BNpBHZUvm/aoDix
9o7hzNXL1jMQKw+S/svjhucT82lo3g39FGcaS7gvGNQ0qtU6ctvPwdSm4OeQN+uvDhA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794970675;
h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:Date:
From:To:Cc:Subject:Message-Id:In-Reply-To:References:X-Mailer:
Mime-Version:Content-Type:Content-Transfer-Encoding:X-Virus-Scanned:
X-Virus-Status;
bh=Zz6iuXsbflDbublwbwpSIrgu8Ro3WRY197OMR4QSr5E=;
b=o7m0uNt+j6ahaKJglRnGTd+gz3WvTBQ64MLN+FdFj3uNdKsDL1bZvTs/HHtw6PQMFNjK
LaU5ei3yi+jXKPCadybpZKOFdmc2VgQd51Gewq4fz9ja8XNGmh4PazqJfYPWHvB3i35un
JgToCFdnMcEpTDzM7SnV3mIeCi48MIhJS4RhK4ykZBmsmRkdOUOuiDaa6zfjJ7Or/soMa
KGh/KJpdiu412Xh8r6SrVwlGLiLt3KqDhqkJ02u+/Av/499t1B01zp7UXaXD8dEajilOm
FcYpw9cjYAPDiJ6lPIGkWUNojg3fcMQo6Q6ns9kWLKfb8lfAtXnPT2gliY8W5nR5Z3A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=uniroma2.it;
spf=pass smtp.mailfrom=uniroma2.it;
dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=ed25519-sha256 header.s=ed201904 header.b="DU/j1e/T";
dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=rsa-sha256 header.s=rsa201904 header.b=Rs5PeYNQ;
arc=none smtp.remote-ip=160.80.4.37
X-Received: from smtp.uniroma2.it (smtp.uniroma2.it [160.80.4.37])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 82DBA606A893;
Wed, 18 Nov 2026 02:57:54 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 82DBA606A893
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniroma2.it
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniroma2.it
X-Received: from smtpauth-2019-1.uniroma2.it (smtpauth.uniroma2.it [160.80.5.46])
by smtp-2015.uniroma2.it (8.14.4/8.14.4/Debian-8) with ESMTP id 6AI2vSBd025499;
Wed, 18 Nov 2026 03:57:33 +0100
X-Received: from lubuntu-18.04 (unknown [160.80.103.126])
by smtpauth-2019-1.uniroma2.it (Postfix) with ESMTPSA id 4DFD1120065;
Wed, 18 Nov 2026 03:57:24 +0100 (CET)
X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=uniroma2.it;
s=ed201904; t=1794970644; h=from:from:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=Zz6iuXsbflDbublwbwpSIrgu8Ro3WRY197OMR4QSr5E=;
b=DU/j1e/TbMc4MfWw+Xr0nGR/LermEnITlT8WH5wmBd1gPpZVE/Riv1uaQY9yxSTzdSIn39
YGqMZdojRkElK3AQ==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniroma2.it; s=rsa201904;
t=1794970644; h=from:from:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=Zz6iuXsbflDbublwbwpSIrgu8Ro3WRY197OMR4QSr5E=;
b=Rs5PeYNQIwESWRRoXOvzYF41yyfNtqNTPH8cTSkBdSfIUzi/smdoe3cgCo127EUYJKDa5x
4U5MZPq8KhIr8dMV+pyvUFszV+fiMYBGt5Jrgumx7ViFhxu32xaEkEeZ4dhcgfoGiFpgGX
xu2ZaAvlkw0AR8CfOGNtrzFglgDwDMLIQCPgN80XFIwFoZ0yGarPw539E1WsDKPlt1TDIJ
qEJHYNGFhkUtrZKoShd60dy+BzCNoMbyg7wUfvJXUmd9yLg8t9nItVjl51marEDVvFeLCE
eGegZMAK/AQjbuA0gXXeImwcCRQRZWPmwZXtsYcreqBfC6HkLHg6NUykL3r/Jg==
X-Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet
<edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni
<pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
Shuah Khan
<shuah@kernel.org>, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
Hangbin Liu <liuhangbin@kylinos.cn>,
Stefano Salsano <stefano.salsano@uniroma2.it>,
Justin Iurman
<justin.iurman@gmail.com>,
Andrea Mayer <andrea@common-net.org>,
Andrea
Mayer <andrea.mayer@uniroma2.it>
X-In-Reply-To: <avz2hH9T_5OOuHbi@fedora>
X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
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-Virus-Scanned: clamav-milter 0.100.0 at smtp-2015
X-Virus-Status: Clean