Re: [PATCH v4] net: ipv6: seg6: report lwtunnel setup errors via extack

From: Gabriel Goller

Date: Thu Oct 08 2026 - 07:34:18 EST


On 05.10.2026 14:18, Jakub Kicinski wrote:
> On Mon, 5 Oct 2026 16:06:34 +0200 Gabriel Goller wrote:
> > seg6_build_state() rejected invalid configurations with a generic -EINVAL,
> > so "ip route add ... encap seg6 ..." always reported "Invalid argument".
> >
> > Attach an extack message to each of them. The checks themselves and their
> > return values are unchanged.
>
> Why not use _MISS were appropriate?
>
> https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261005140637.644840-1-g.goller@xxxxxxxxxxx

Makes sense.
This will make the output less user-friendly than before, but I think that's fine.

E.g.:

Missing required attribute type 1
RTNETLINK answers: Invalid argument

> --
> pw-bot: cr
>
>