From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.216 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794963092; b=34g89Nkelhp3fL2aHfSREi4rM90Bq/90XkGWac5rFEU43qhz/2kzAw2ftd0L30lWDGHJ kNfWSoGxEmxq5v8V5Qw3Dryk+T/K/BmJDVhORanF4RnFSRoBVTUd+nM2mpD9xVB5gQ1Qc p4vqgthncScIR7+Jd6J0Hoxq/EW2Sp6GtZOJIwU4RDD1NfHzT6GGfheyWXGBRV3u3h61a oMFXCo13JGpBCJ6X+P8APrcKJNbYxIR198mcEB3zfq+b8s+YLejyqySQrnhRqqEdqYgB6 Y4yESzfDWPUnQ8aNL+gruLRgeU60h2TrZ05eSsanQzI60sdqncp8WWrh2QGJi7QRP6Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794963092; 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=+h9Sc4b2ra6u3kHXZEe7fr/dhg1Q14nueP4OB65HOrs=; b=b6mqRpEyFXwQCmwWHuxVd3tj5uWpNmiTzKTfi3T4brjhiYw/oAkLQ2AcSttoBIBiB1vp 5YXZmKkpHgpl4fCf3au3VeOl7tT3F07cHNeTc8A4rfC+zBMx4KXr5+Ndg828shAetBX9A hJVn/Otsq+7I4Zg9bx8vHHtDvxVyrNutrmBbub6cxX+woBs33PcBzIkMRn5wZoWBOqxmL VXC1OcgqXhAVdi0EgJf01+qIcosIMzz7aKxYasfg/hlbmOLqTjmy0ZuStpnnqaa+kHXK4 7v5Fj5UzPCJNQMlEUeP6Oh8JbdHRT2/kJem5SzkUIh/Fo25RD5TwlcRnB9OvGt6129Q== 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=DRaub8EV; arc=none smtp.remote-ip=91.218.175.216 Received: from mta0.migadu.com (out-216.mta0.migadu.com [91.218.175.216]) (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 BC07E606A31C for ; Wed, 18 Nov 2026 00:51:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BC07E606A31C 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=DRaub8EV X-Envelope-To: netdev@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=35j3KAfDSmKSKABohtx1cPJcLRuq+RzcWD81Hn4b4RQ=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1794963089; v=1; x=1795567889; b=DRaub8EVxyz+fRnfzet//xzx3JvxSjKRGDwmj8Pub2pD0PIIyBaaS9lLF2KDctG53VsfsH5s p/7KieQMj1TNXTyCEIF/t+ShEmzSPXqmWNZjh+rH/8VUirds/MTpnGWdllg9gKQm1UdjjHdEMbv 1ChiNauMGzApRwJuLtcMSVyk= X-Envelope-To: netdev@vger.kernel.org Received: by mta11.migadu.com with ESMTPS id 1f790bf25116b760; Wed, 18 Nov 2026 00:51:29 +0000 X-Mizu-Trace-ID: 1f790bf25116b760 X-Migadu-Flow: FLOW_OUT Date: Wed, 18 Nov 2026 08:51:16 +0800 From: Hangbin Liu 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 Subject: Re: [PATCH net-next v3 5/5] selftests: seg6: add PSP flavor testing for SRv6 End.X Message-ID: References: <20261112-srv6_flavors_endx-v3-0-c9177bbbd965@kylinos.cn> <20261112-srv6_flavors_endx-v3-5-c9177bbbd965@kylinos.cn> <20261117035021.e724668d726ecce54e091288@uniroma2.it> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Nov 17, 2026 at 04:48:12PM +0800, Hangbin Liu wrote: > > > I didn't add `host_srv6_end_flv_consumed_srh_tests()` for End.X because > > > the extra policy insertion does not work with the End.X policy. The packet > > > resolves the destination via the next hop directly, rather than doing a > > > re-lookup in table 90. > > > > The ingress router can insert the extra SRH instead, on the first SID > > of the Policy. As in the End tests, an End SID of the base setup can > > then consume it. This way, we can add these tests for End.X too. What > > do you think? > > For the End.X Policy (i.a) testing, we have SID List=fcff:3::a,fcff:4::af1,fcff:2::af1,cafe::2. > And we configured the next hop policy for the SID on each rt. e.g > > On rt3: fcff:3::000a table 90 encap seg6local action End.X nh6 fcf0:0:3:4::4 > On rt4: fcff:4::0af1 table 90 encap seg6local action End.X nh6 fcf0:0:2:4::2 flavors psp > on rt2: fcff:2::0af1 table 90 encap seg6local action End.X nh6 cafe::2 flavors psp > > When the packet arrive on rt4, it's dst is set to fcff:2::af1. And the new > insert policy (fcff:2::0af1 table 90 encap seg6 mode inline segs fcff:3::000e dev dum0) > doesn't works as the End.X policy will goto next hop fcf0:0:2:4::2 directly > instead of looking at fcff:2::af1 on table 90. > 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? Hangbin