Article View: linux.kernel.netdev
Article #1161[PATCH net-next v2 0/5] seg6: add End.X PSP flavor support and selftests
From: Hangbin Liu
Date: Fri, 09 Oct 2026 09:58
Date: Fri, 09 Oct 2026 09:58
45 lines
7522 bytes
7522 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 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
selftest: seg6: add explicit cleanup for SRv6 End PSP test
selftests: seg6: add End.X PSP selftest
net/ipv6/seg6_local.c | 27 +++-
.../testing/selftests/net/srv6_end_flavors_test.sh | 165 +++++++++++++++++++--
2 files changed, 177 insertions(+), 15 deletions(-)
---
base-commit: d8674294aefef02266c4d47ad10131f1bffbe534
change-id: 20260922-srv6_flavors_endx-9489116d50c4
Best regards,
--
Hangbin Liu <liuhangbin@kylinos.cn>
Technical Details
Message-ID:
<20261009-srv6_flavors_endx-v2-0-56ac7f838f41@kylinos.cn>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343565-linux-kernel-netdev=dewy.ruShow 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-343565-linux-kernel-netdev=dewy.ru From: hangbin.liu@linux.dev (Hangbin Liu) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v2 0/5] seg6: add End.X PSP flavor support and selftests Date: Fri, 09 Oct 2026 17:58:36 +0800 Organization: Usenet Network Message-ID: <20261009-srv6_flavors_endx-v2-0-56ac7f838f41@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1078001"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:HJiC6oI3CrGr1pJTOGP8hsLba+k= sha256:+gL9IcXFFgtc/69JwFRJa3SI4G2CRwAdHg0QZKe4Kb8= sha1:J9cW7LI+HV7bWuX66OvVZbbuDv4= sha256:3vBlLjk1LQm9RoiHM+Uq0eOlVakbHZyrqc9Ym5iWaiU= 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 54E4E10F643; Fri, 9 Oct 2026 12:59:11 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.751 X-Spam-Status: No, score=-0.751 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, SPF_HELO_NONE=0.001, SPF_PASS=-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 Pr1PHm1GX67g; Fri, 9 Oct 2026 12:59:04 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-343565-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 7DCF110F0B0; Fri, 9 Oct 2026 12:58:59 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 50D242C7CB; Fri, 9 Oct 2026 09:58:58 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C73443B6EC; Fri, 9 Oct 2026 09:58:55 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="LAndHGBQ" X-Received: from mta1.migadu.com (out-27.mta1.migadu.com [95.215.58.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6D4F49252E for <netdev@vger.kernel.org>; Fri, 9 Oct 2026 09:58:52 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.27 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791539935; cv=none; b=pUyRyKUZoB5DDKIDk2vL8BHFGHwSBYDRSj7Acaj1OZDkIA8YIO0lBWCh86A/DlEHpNFs6psC/+tba2SqmPqZ7krtBgOM4a+tM6jLVwF00pdIe2JuI+xFTNQ8a2laZDelZNS+qduOxvJvDJ/FsLcbNHgCcsFVO1O3Js7YuL1rg9A= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791539935; c=relaxed/simple; bh=qhW4DsstDxHDNS4FdKnEy+MnjMpUAMEn0mq0LakeoBk=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Bg+PiYl40rRjRfQZ1on1qgkd3qVDFHvtqRS8dRmJTe3Xxqf5CNhFOJxO3zug9AQa09xgltG7Gx5z98AbZNSt+9diaTCrP5NWaXYHd1eF0YTE7EC0AZvdrxWxlKYq4vM6gfRx5YaAH9Vkhi5bHA+csQrk4IZO9KnDgwEFu+ruxrc= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=LAndHGBQ; arc=none smtp.client-ip=95.215.58.27 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=qhW4DsstDxHDNS4FdKnEy+MnjMpUAMEn0mq0LakeoBk=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1791539930; v=1; x=1792144730; b=LAndHGBQT6am7gbAb2uYDB3ZHZspPpbQ0TQPM7X+FsyykNtc+EYMI7VDJ1iNLYiQCob4RVuK 4oqcwrKBiottTjAjSN5lF95ivXRdvSjm6eIX8d1DfQiV9Qu3BUU2UWdhaMfFwgcUPfy9tq90Evt U1EacZykec+u0GBSdJpfZKN8= X-Envelope-To: netdev@vger.kernel.org X-Received: by mta10.migadu.com with ESMTPS id ab1867499928d1b3; Fri, 09 Oct 2026 09:58:50 +0000 X-Mizu-Trace-ID: ab1867499928d1b3 X-Migadu-Flow: FLOW_OUT X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/32NQQqDMBBFryKzbkoSotaueo8iYpOxhsqkZCQok rs3eIAuH4///gGM0SPDvTogYvLsAxXQlwrsPNIbhXeFQUvdyE5rwTE1w7SMKUQekNwmOnPrlGp cLa2BsvtGnPx2Np9AuArCbYW+mNnzGuJ+niV1+j/dpIQUxkllZW1N+2ofn33xFPhqCfqc8w+br AZ6vQAAAA== 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.14.3