Article View: linux.kernel.netdev
Article #19175[PATCH net-next v4 0/5] seg6: add End.X PSP flavor support and selftests
From: Hangbin Liu
Date: Thu, 19 Nov 2026 13:55
Date: Thu, 19 Nov 2026 13:55
73 lines
11504 bytes
11504 bytes
This series adds End.X PSP flavor handling in seg6local and extends the
SRv6 selftests to cover it.
Patch 1 splits the final forwarding step out of end_flv8986_core() so
RFC8986 flavor logic can be reused outside the End path.
Patch 2 uses that to add End.X PSP support through the same
end_flv8986_core() path.
Patches 3-4 refactor the PSP selftest setup/cleanup so flavor tests can
be added more cleanly.
Patch 5 adds End.X PSP connectivity coverage and updates the selftest
policy parser to accept an explicit action field.
The goal is to make End.X PSP behavior consistent with End PSP, while
keeping the selftest structure easier to extend for later flavors.
Run all srv6 selftests on debug kernel. All passed without error.
Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn>
---
Changes in v4:
- Thanks for Andrea' reviewing. All the changes are based on Andrea's suggestion
- Patch 3:
- always report on every setup error
- keep adding proxy entry __setup_rt_policy
- Patch 4:
- update commit subject and description
- defer proxy route
- defer setup_hs_lo_addr
- Patch 5:
- add helper __get_srv6_node_id() and __get_srv6_adjacent_id to get
node id and adjacent id. Remove __get_srv6_rtcfg_all_id.
- merge three __get_*_func() to one __get_func() helper
- update build_csid() to use the 2 new add helper
- __setup_rt_policy
- add a check to drop incorrect policy
- use get_rt_sid() to get the policy
- read the element once, and pass only what setup_rt_endpoints() needs
- add a check of the kernel support for End.X PSP.
- add a own SID for each adjacency
- add consumed SRH testing for End.X
- Link to v3: https://patch.msgid.link/20261112-srv6_flavors_endx-v3-0-c9177bbbd965@kylinos.cn
Changes in v3:
- Rebase on Andrea's "seg6: fixes for the PSP flavor of SRv6 End"
- Update selftest to support the new SID format
- Link to v2: https://lore.kernel.org/r/20261009-srv6_flavors_endx-v2-0-56ac7f838f41@kylinos.cn
Changes in v2:
- rebase on Andrea's "seg6: ensure packet data is writable before modifying SRH and IPv6 DA"
- Patch 2: Update end_flv8986_core() comment for End.X
- Patch 3: Move ret check in this patch
- Patch 4: Do not remove noflv route
- Link to v1: https://lore.kernel.org/r/20260922-srv6_flavors_endx-v1-0-4d01c05c47b7@kylinos.cn
---
Hangbin Liu (5):
seg6: split final End process out of flavor processing
seg6: add RFC8986 flavor support for End.X
selftests: seg6: move SRv6 End PSP setup into its own helper
selftests: seg6: explicit cleanup for SRv6 End PSP test
selftests: seg6: add PSP flavor testing for SRv6 End.X
net/ipv6/seg6_local.c | 31 +-
.../testing/selftests/net/srv6_end_flavors_test.sh | 408 +++++++++++++++++----
2 files changed, 365 insertions(+), 74 deletions(-)
---
base-commit: c88fd6989aea9237a60a4859139a265bfb7ddc0b
change-id: 20260922-srv6_flavors_endx-9489116d50c4
Best regards,
--
Hangbin Liu <liuhangbin@kylinos.cn>
Technical Details
Message-ID:
<20261119-srv6_flavors_endx-v4-0-284cdb484eee@kylinos.cn>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367048-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367048-linux-kernel-netdev=dewy.ru From: hangbin.liu@linux.dev (Hangbin Liu) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v4 0/5] seg6: add End.X PSP flavor support and selftests Date: Thu, 19 Nov 2026 21:55:16 +0800 Organization: Usenet Network Message-ID: <20261119-srv6_flavors_endx-v4-0-284cdb484eee@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2886458"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Whrhe02deMZ5MRO15vtADdsS3Q0= sha256:3VLqqqhUmqyVC0t1aTLyJ+lyoNkxjFjYh71CB45a5FE= sha1:QtNUgsCV/60yeZPjwdNQbQb2h6k= sha256:wkj+m+rtnwX98weryy4nmPj2JfAQ2+XFK+B9BM5g05g= 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 4CAF911567A; Thu, 19 Nov 2026 16:56:09 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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, 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 p7g3ohClmKY5; Thu, 19 Nov 2026 16:56:05 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-367048-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 26BB1115643; Thu, 19 Nov 2026 16:55:57 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 4D5A2168CB7; Thu, 19 Nov 2026 13:55:43 +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=1795096542; b=xoMVX/TfSgMZtxqGBAdUy0vmxMTzm8Bv9I7ywyRrUxVYjIH46V7u6UuDCAw5ZVY5+FiG qJMvDlDlQjzFi8UF0M76EkM2elwdCtIlFLsYX/ct5pHKC0mB9wS1TKE3P6CC0sSq4OR95 fzEWGQiXV1l3RjwCvKExtjXoqqbGuV2lLTSK2iPNdKPMAK6lRy7iFDestR5n1+ZPBd3MV XnZ+HAVDYjDYiokRdJxjklLZjssD63RHoo35odSksJrhNwoSfkZ0EeQyTPo2v5QSleuXd TMZQwOoOxD9kSkOlgl0+on1W22zvS0frdpjq8qSng0yzZg7fJcBdvy+3wNnhNP5dz8Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795096542; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:From:Subject: Date:Message-Id:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer; bh=G0aOGc/ks5PLcqUi+hwLdKUzXjjRzZ8ni3LQ8m9/fZw=; b=VFUh1jI3fHP0A28j76E1RMuhH6ImF2qF8qd8higkSzy54Oe7/5miW+FAMAYNi5l1nX9b tgiqWZ78YURA7s8O7msjlbwk+VW6SsGjLIX681HJVrMxk/icsIwKcbIlnT+FFObKfO8vk 6ICSckBGZ+HagzSsL+fCPTHmOUrCuuhKnK6/q8Xy/3UdlGPYmTINg9CW4N0bsABi8CspU LCcHPAwKKiWujPtyGZYGhW94sr+usr/jClBVha3O2myFAJ7Z4g2+bCrJ+tzmBENGno7LN +vo3bwcwsnZoH9vXmhEYU+nIIQKoDs7CWkwI0z7Rv87gglKYNh8bXYE36PyknJcWn7Q== 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=dcVwU8Qn; 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 6E490606A331; Thu, 19 Nov 2026 13:55:42 +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=dcVwU8Qn X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.77 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795096541; b=IKsKq7pKwZ8OjBGgeg5dCzn84xvWJR0ECuBp2xqphzIqf9yYdiqxswCL2+hXnpUqjV5a r1npgbXMDMXFpAP2rG4SZmw1fguyKHswylEAzkgDr0wYmnbdcEWUGOkzSasyv8QnGLBUb wrP8lYcImeJIVqr64Z27lFerurkzJwPrL1DhVaotZ4Y6RjlAwwPAvaoWRR7ux/MDeBFIQ NaVGI7JUUQEFhPhDl5yAdb2WjgtE9bolmqAWek+gOdK2xPu75yREdoEmS2zs1gnFvLjo6 hjPAXJw9W2XO7j2IO9nFnHcyenRNImnDzk7qrVPflna9X/PkqNBALtsQ37v5PCVo4tA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795096541; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer; bh=G0aOGc/ks5PLcqUi+hwLdKUzXjjRzZ8ni3LQ8m9/fZw=; b=Oej7Xc0kmLkq+3zDtG8cFmiyTG1aeO2FD6nzL8NwMdL6LC19gp80JaD0wFJbIMiY1W24 W1xT2HvGeWcd2uIWcXK69NupWUoHFRS9+YIDSQ1gFfkKCmD5S8Q0GkURCCZSJrcS2sKnB tNjV/KKhHENqX/8NdlL0OXfW2c8SIADkehcoe99uILi0mZBLr7+x04WJShBoVVHRCAdKk 8KceZXWcapiY7pK+sLrACvte15qWU7e5CMbvVZFOVinWNcdMYdak2LTjk5vbm7evJ8Cia KMAIcmXlKzt+YSS7xr1FeznejXSQAONoKOi0qp65M+7R3pYqYBohDBcOo8nzbNSCLmA== 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=dcVwU8Qn; arc=none smtp.remote-ip=95.215.58.77 X-Received: from mta1.migadu.com (out-77.mta1.migadu.com [95.215.58.77]) (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 AAC17606A320 for <netdev@vger.kernel.org>; Thu, 19 Nov 2026 13:55:40 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AAC17606A320 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=FCj/8e9uTCKrDhQ6r5pdxrylYSNXp0DbqY8XBBvdTHo=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795096538; v=1; x=1795701338; b=dcVwU8Qnv1Y2siQ2JdMu8csRldn6rNNCxO2MP85Hbvh97zyDUswALrSKQft6GeM/HehNgQLI SR9WMpWdfBruhikRsM+YqwTi34ZBefwkCiKc6piLgJJj5GUhrvN8iBxIJzNmBKbBjaOCVToX6dc wKG/r/bEVPv+V62wFPFo/OTM= X-Envelope-To: netdev@vger.kernel.org X-Received: by mta10.migadu.com with ESMTPS id f7765eaebbe975a7; Thu, 19 Nov 2026 13:55:37 +0000 X-Mizu-Trace-ID: f7765eaebbe975a7 X-Migadu-Flow: FLOW_OUT 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-B4-Tracking: v=1; b=H4sIAAAAAAAC/33O0QqDIBQG4FcZXs/hMdPc1d5jjCi1JQsdGlJE7 z7pYmMsdvnzc77/LCiaYE1E58OCgkk2Wu9yYMcDUn3j7gZbnTOihHIiKcUxJF53Q5N8iLVxesK SVRKA65IohvLdM5jOTpt5Rc6M2JlpRLfc9DaOPszbWIKt/+MmwAQzTUCRUjHRistjHqzz8aTcx iX6JoAQuUfQTJS8UaKriqpj8EMUHwJg94siE0qCEG3basnLL2Jd1xdo66GZQwEAAA== X-Change-ID: 20260922-srv6_flavors_endx-9489116d50c4 X-Cc: Hangbin Liu <hangbin.liu@linux.dev>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Hangbin Liu <liuhangbin@kylinos.cn> X-Mailer: b4 0.16.0