[PATCH net-next v2 0/5] seg6: add End.X PSP flavor support and selftests

From: Hangbin Liu

Date: Fri Oct 09 2026 - 05:59:07 EST


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@xxxxxxxxxx>
---
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@xxxxxxxxxx

---
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@xxxxxxxxxx>