From: Gabriel Goller <g.goller@proxmox.com>
To: Andrea Mayer <andrea.mayer@uniroma2.it>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org
Subject: [PATCH net-next 0/2] net: ipv6: seg6: extack messages for lwtunnel setup
Date: Fri, 18 Sep 2026 17:35:14 +0200 [thread overview]
Message-ID: <20260918153544.1178884-1-g.goller@proxmox.com> (raw)
seg6_build_state() rejects invalid lwtunnel configurations with a bare -EINVAL,
so "ip route add ... encap seg6 ..." always reports "Invalid argument".
Patch 1 attaches an extack message to each of them.
Patch 2 adds a ksft/ynl selftest that hits some rejection paths and checks the
error messages.
Gabriel Goller (2):
net: ipv6: seg6: report lwtunnel setup errors via extack
selftests: seg6: check extack messages on SRv6 lwtunnel setup
net/ipv6/seg6_iptunnel.c | 25 ++-
tools/testing/selftests/net/Makefile | 1 +
.../selftests/net/srv6_iptunnel_extack.py | 168 ++++++++++++++++++
3 files changed, 189 insertions(+), 5 deletions(-)
create mode 100755 tools/testing/selftests/net/srv6_iptunnel_extack.py
base-commit: 4bb9710c6a68d35207f123aef55dcd50e7195ec5
--
2.47.3
next reply other threads:[~2026-09-18 15:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-18 15:35 Gabriel Goller [this message]
2026-09-18 15:35 ` [PATCH net-next 1/2] net: ipv6: seg6: report lwtunnel setup errors via extack Gabriel Goller
2026-09-18 15:35 ` [PATCH net-next 2/2] selftests: seg6: check extack messages on SRv6 lwtunnel setup Gabriel Goller
2026-09-18 22:02 ` Jakub Kicinski
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=20260918153544.1178884-1-g.goller@proxmox.com \
--to=g.goller@proxmox.com \
--cc=andrea.mayer@uniroma2.it \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--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®