From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.123 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795441240; b=3Bj2jMKd8ZTDbsW4i+E2kAlwERNtLoSD+/Md9wWmgmDj/ofhfTwIrNrggXQbOO7mDdOL AUV78dqkFjzLPUBI5+vWzqz6ROiK0oiO6Z+Ewcpoj9377Dq6QeV0yuyVNLOz4ShIp7HXH 7BEo4AuUSVq/6y+E12aFi7dFKiBrGDa8xVQIVhQ/ejBfgB3uwMhNyzDWEWir7+QzcLEkM nIeYBhH93nOwvpN13c4DdAgntll2VpQ2Tiot4Prb6KMPVqf1Dmi0L/ZnRPC1P29ap4VW9 zcXgpk6MR3MLZrZ0yyr2LFFaYAS5U1LdO9UuPht9EeP5CdMfCIq7Vk6G7F6w2OX9dqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795441240; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:MIME-Version:Date:Content-Type: Content-Transfer-Encoding:From:Message-ID:TLS-Required:Subject:To:Cc: In-Reply-To:References; bh=nziyEOPopQDeZnuCi9xjHTCH+7zInZPDNY/uB2Wtw88=; b=iA53FK5ipw4gwdJzpTJYYP3t76LKeK1uGzpQcId8iztEYFxRyfxzg3x/yRlUOgfgrn6i JOlm1wqz5UNmygFfvsfgdaxz4uujegh/3fSWTG8I/texeB7mpL9P2W0JN73U23mEdkxeJ lBkG6ggYPyFOy87VrsFUao7tWEzA2yk+MONwjHk+f+hOgOXWlFJGTGxwXxvSZzquh3Av2 eY2OyZfK1ursK+POMDBjQMTZ4aur6g+Y+JJRTt3U+3SsiSXyIUgT7aHOtEQG3kROJwvJd ZBwhVHqrX77N07k8yB9q5fM7d5n1BHH16sSadeL3G/SMzfwCpcuiiiqqud1BoId5DpA== 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="pq0MgP/a"; arc=none smtp.remote-ip=95.215.58.123 Received: from mta1.migadu.com (out-123.mta1.migadu.com [95.215.58.123]) (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 CC63A606A331 for ; Mon, 23 Nov 2026 13:40:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CC63A606A331 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev 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=pq0MgP/a X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=/U/+GZkDiddmQc6MitDabS39SqSg7IIt9wb0rLSnNdA=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795441237; v=1; x=1796046037; b=pq0MgP/awu/jZm7TxF4AGQIA/kPCZgs475cmX8IH7PNPTBOGskmDnlAlZgDAaOfzcQm5feZc 0owMR2Fao3jYNHRKsSy0kljaZ9TEK68pLxv4pSslg2L/WW4r8by8EH9fS4QZFuI11JrBiKQzc1W hL/s+FxDQjsznRrehzOhXIjY= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id ee8e84438da3ae18; Mon, 23 Nov 2026 13:40:29 +0000 X-Mizu-Trace-ID: ee8e84438da3ae18 X-Migadu-Flow: FLOW_OUT X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Date: Mon, 23 Nov 2026 13:40:27 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: hangbin.liu@linux.dev Message-ID: <4717cab46b8eec796eb97799240cd6ab92d8c1ed@linux.dev> TLS-Required: No Subject: Re: [PATCH net-next v4 5/5] selftests: seg6: add PSP flavor testing for SRv6 End.X To: "Andrea Mayer" Cc: "David S. Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Simon Horman" , "Shuah Khan" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, "Hangbin Liu" , "Stefano Salsano" , "Justin Iurman" , "Andrea Mayer" , "Andrea Mayer" In-Reply-To: <20261123050952.21dc46abdf5fe4fa235bb68d@uniroma2.it> References: <20261119-srv6_flavors_endx-v4-0-284cdb484eee@kylinos.cn> <20261119-srv6_flavors_endx-v4-5-284cdb484eee@kylinos.cn> <20261123050952.21dc46abdf5fe4fa235bb68d@uniroma2.it> November 23, 2026 at 12:09 PM, "Andrea Mayer" = wrote: >=20 >=20On Thu, 19 Nov 2026 21:55:21 +0800 > Hangbin Liu wrote: >=20 >=20>=20 >=20> [snip] > > @@ -1031,6 +1187,25 @@ setup_end_flv_psp() > > SETUP_ERR=3D0 > > } > >=20=20 >=20> +setup_endx_flv_psp() > > +{ > > + SETUP_ERR=3D1 > > + > > + setup_hs_lo_addr 1 1 "${ENDX_CSID_PSP_FUNC}" > > + setup_hs_lo_addr 2 2 "${ENDX_CSID_PSP_FUNC}" > > + > > + # The same SRv6 policies with setup_end_flv_psp except using End.X > > + setup_rt_policy_ipv6 2 1 "3>4:noflv:End.X 4>2:psp:End.X 2>h:psp:En= d.X" > > + setup_rt_policy_ipv6 1 2 "1>h:psp:End.X" > > + > > + setup_rt_policy_ipv6 "2:${ENDX_CSID_PSP_FUNC}" 1 \ > > + "3>4:next-csid,psp:End.X 4>2,2>h:next-csid,psp:End.X" > > + setup_rt_policy_ipv6 "1:${ENDX_CSID_PSP_FUNC}" 2 \ > > + "4>3,3>1,1>h:next-csid,psp:End.X" > > + > > + SETUP_ERR=3D0 > > +} > >=20 >=20On v3, Sashiko asked whether the End.X tests would pass with End.X > working as End. In this topology, the nh6 of each End.X is also the > next hop that a lookup of the new DA gives, and the tests pass in both > cases. An unreachable route in table 90 for the next SID, on rt-4 for > (i.a) and on rt-3 for (i.c), would make End fail and leave End.X > working. This is close to what Sashiko suggested on v3. What do you > think about adding these two routes to the End.X scenario, each with > its defer? >=20 Oh,=20for i.a), do you mean add an unreach rt-2 SID on rt-4? e.g. fcfcff:2::/32 unreachable? If yes, based on # (i.a) hs-1 -> hs-2: on the packets with DA=3Dfcff:3::400a, rt-1 inser= ts the=20=20=20 #=20 extra SRH with SID List=3Dfcff:4::e,fcff:3::400a, and rt-4 co= nsumes # it.=20 #=20 Path: hs-1 -> rt-1 [ -> rt-4 ] -> rt-3 -> rt-4 -> rt-2 -> hs-= 2=20=20=20=20=20=20=20=20 #=20 (i.c) hs-1 -> hs-2: on the packets with DA=3Dfcbb:0:34a9::, rt-1 in= serts the=20=20 #=20 extra SRH with SID List=3Dfcff:4::e,fcbb:0:34a9::, and rt-4 c= onsumes # it. # Path: hs-1 -> rt-1 [ -> rt-4 ] -> rt-3 -> rt-4 -> rt-2 -> hs-2 I think we should add the unreach rt-4 SID on rt-3, e.g. fcff:4::/32 and = fcbb:4::/32, because we need to use the neighbour route on rt-4 to redirect packet to = rt-3 after End action. What do you think? Thanks Hangbin