From: netdev-bot+sashiko@kernel.org
To: hangbin.liu@linux.dev
Cc: andrea.mayer@uniroma2.it, andrea@common-net.org,
davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, horms@kernel.org, shuah@kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org, liuhangbin@kylinos.cn
Subject: Re: [PATCH net-next v4 2/5] seg6: add RFC8986 flavor support for End.X
Date: Mon, 23 Nov 2026 14:24:06 +0000 [thread overview]
Message-ID: <179544384617.3135.5029512029947084048@kernel.org> (raw)
In-Reply-To: <20261119-srv6_flavors_endx-v4-2-284cdb484eee@kylinos.cn>
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The concern: in net/ipv6/seg6_local.c, the patch adds
SEG6_LOCAL_FLV8986_SUPP_OPS to SEG6_LOCAL_END_X_FLV_SUPP_OPS.
--
seg6: add RFC8986 flavor support for End.X
This commit adds SEG6_LOCAL_FLV8986_SUPP_OPS to the End.X supported flavor
mask, so End.X now accepts the PSP flavor. input_action_end_x() now handles
flavors the same way input_action_end() does: NEXT-C-SID is evaluated
first, then end_flv8986_core() runs, then input_action_end_x_finish().
> diff --git a/net/ipv6/seg6_local.c b/net/ipv6/seg6_local.c
> index 65d552f87fa39..c827a745fe176 100644
> --- a/net/ipv6/seg6_local.c
> +++ b/net/ipv6/seg6_local.c
> @@ -121,7 +121,8 @@ struct bpf_lwt_prog {
>
> #define SEG6_LOCAL_END_FLV_SUPP_OPS (SEG6_F_LOCAL_FLV_NEXT_CSID | \
> SEG6_LOCAL_FLV8986_SUPP_OPS)
> -#define SEG6_LOCAL_END_X_FLV_SUPP_OPS SEG6_F_LOCAL_FLV_NEXT_CSID
> +#define SEG6_LOCAL_END_X_FLV_SUPP_OPS (SEG6_F_LOCAL_FLV_NEXT_CSID | \
> + SEG6_LOCAL_FLV8986_SUPP_OPS)
>
> struct seg6_flavors_info {
> /* Flavor operations */
[ ... ]
> @@ -986,12 +987,20 @@ static int input_action_end_x(struct sk_buff *skb, struct seg6_local_lwt *slwt)
> {
> const struct seg6_flavors_info *finfo = &slwt->flv_info;
> __u32 fops = finfo->flv_ops;
> + int ret;
> +
> + if (!fops)
> + return input_action_end_x_core(skb, slwt);
>
> - /* check for the presence of NEXT-C-SID since it applies first */
> - if (seg6_next_csid_enabled(fops))
> + /* NEXT-C-SID is evaluated first, when configured */
> + if (seg6_use_next_csid(skb, finfo))
> return end_x_next_csid_core(skb, slwt);
>
> - return input_action_end_x_core(skb, slwt);
> + ret = end_flv8986_core(skb, slwt);
> + if (ret)
> + return ret;
> +
> + return input_action_end_x_finish(skb, slwt);
> }
[Severity: Low]
This isn't a bug, but at this commit no selftest covers the new End.X
flavor configurations.
With the wider SEG6_LOCAL_END_X_FLV_SUPP_OPS, netlink now accepts End.X
with "flavors psp" and with "flavors next-csid,psp". Both used to fail with
-EOPNOTSUPP. Both now go through seg6_use_next_csid(), end_flv8986_core()
and input_action_end_x_finish().
At this point, tools/testing/selftests/net/srv6_end_flavors_test.sh only
tests "action End flavors ...".
It looks like the later patch in this series, "selftests: seg6: add PSP
flavor testing for SRv6 End.X", fills this gap. That patch:
- adds setup_endx_flv_psp(), which installs End.X policies with psp
alone and with next-csid,psp
- adds host_srv6_endx_flv_consumed_srh_tests()
- makes test_kernel_supp_or_ksft_skip() probe End.X psp
- runs the new tests from test_endx_flv()
If that patch is merged with this one, nothing more should be needed here.
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261119-srv6_flavors_endx-v4-0-284cdb484eee%40kylinos.cn
next prev parent reply other threads:[~2026-11-23 14:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 13:55 [PATCH net-next v4 0/5] seg6: add End.X PSP flavor support and selftests Hangbin Liu
2026-11-19 13:55 ` [PATCH net-next v4 1/5] seg6: split final End process out of flavor processing Hangbin Liu
2026-11-19 13:55 ` [PATCH net-next v4 2/5] seg6: add RFC8986 flavor support for End.X Hangbin Liu
2026-11-23 14:24 ` netdev-bot+sashiko [this message]
2026-11-19 13:55 ` [PATCH net-next v4 3/5] selftests: seg6: move SRv6 End PSP setup into its own helper Hangbin Liu
2026-11-19 13:55 ` [PATCH net-next v4 4/5] selftests: seg6: explicit cleanup for SRv6 End PSP test Hangbin Liu
2026-11-19 13:55 ` [PATCH net-next v4 5/5] selftests: seg6: add PSP flavor testing for SRv6 End.X Hangbin Liu
2026-11-23 4:09 ` Andrea Mayer
2026-11-23 10:09 ` Hangbin Liu
2026-11-23 13:40 ` hangbin.liu
2026-11-23 14:24 ` netdev-bot+sashiko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179544384617.3135.5029512029947084048@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=andrea.mayer@uniroma2.it \
--cc=andrea@common-net.org \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hangbin.liu@linux.dev \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=liuhangbin@kylinos.cn \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®