From: Andrea Mayer <andrea.mayer@uniroma2.it>
To: Gabriel Goller <g.goller@proxmox.com>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
hangbin.liu@linux.dev,
Stefano Salsano <stefano.salsano@uniroma2.it>,
Andrea Mayer <andrea.mayer@uniroma2.it>
Subject: Re: [PATCH v4] net: ipv6: seg6: report lwtunnel setup errors via extack
Date: Tue, 6 Oct 2026 17:43:48 +0200 [thread overview]
Message-ID: <20261006174348.b62a0e824aa8acfbf187e4c5@uniroma2.it> (raw)
In-Reply-To: <20261005140637.644840-1-g.goller@proxmox.com>
On Mon, 5 Oct 2026 16:06:34 +0200
Gabriel Goller <g.goller@proxmox.com> wrote:
Hi Gabriel,
thanks for the v4. +1 to Jakub on _MISS. I also have two comments on
the message text.
> [snip]
> switch (tuninfo->mode) {
> case SEG6_IPTUN_MODE_INLINE:
> - if (family != AF_INET6)
> + if (family != AF_INET6) {
> + NL_SET_ERR_MSG_ATTR(extack, tb[SEG6_IPTUNNEL_SRH],
> + "inline mode requires an IPv6 route");
> return -EINVAL;
> + }
This message is also returned for an IPv4 nexthop object, where there
is no route, for example:
ip -4 nexthop add id 1 encap seg6 mode inline segs fc00::1 dev dummy0
What about "inline mode requires the IPv6 address family"?
> [snip]
> /* verify that SRH is consistent */
> - if (!seg6_validate_srh(tuninfo->srh, tuninfo_len - sizeof(*tuninfo), false))
> + if (!seg6_validate_srh(tuninfo->srh, tuninfo_len - sizeof(*tuninfo),
> + false)) {
> + NL_SET_ERR_MSG_ATTR(extack, tb[SEG6_IPTUNNEL_SRH],
> + "invalid SRv6 segment routing header");
> return -EINVAL;
> + }
A nit: the same header is "SRv6 segment routing header" here and
"SRv6 SRH" in the other messages of seg6_build_state(). What about
using the name from the title of RFC 8754 in the extack messages,
for example:
"invalid SRv6 segment routing header"
-> "invalid IPv6 Segment Routing Header"
Thanks,
Andrea
next prev parent reply other threads:[~2026-10-06 15:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-05 14:06 [PATCH v4] net: ipv6: seg6: report lwtunnel setup errors via extack Gabriel Goller
2026-10-05 21:18 ` Jakub Kicinski
2026-10-08 11:32 ` Gabriel Goller
2026-10-06 15:43 ` Andrea Mayer [this message]
2026-10-08 11:34 ` Gabriel Goller
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=20261006174348.b62a0e824aa8acfbf187e4c5@uniroma2.it \
--to=andrea.mayer@uniroma2.it \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=g.goller@proxmox.com \
--cc=hangbin.liu@linux.dev \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stefano.salsano@uniroma2.it \
/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