mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: ipv6: seg6: extack messages for lwtunnel setup
@ 2026-09-18 15:35 Gabriel Goller
  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
  0 siblings, 2 replies; 4+ messages in thread
From: Gabriel Goller @ 2026-09-18 15:35 UTC (permalink / raw)
  To: Andrea Mayer, David S . Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Simon Horman, Shuah Khan
  Cc: netdev, linux-kernel, linux-kselftest

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-18 22:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-18 15:35 [PATCH net-next 0/2] net: ipv6: seg6: extack messages for lwtunnel setup Gabriel Goller
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

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®