selftests/net: add test for IP-in-IPv6 tunneling
Subsystems (3)
PATCH v4 1/1 selftests/net: add test for IP-in-IPv6 tunneling
commit 81c734dae203 ("ip6_tunnel: use skb_vlan_inet_prepare() in __ip6_tnl_rcv()") was fine in and of itself, but its backport to 6.12 (and 6.6) broke IPv4-in-IPv6 tunneling, see [1]. This adds a self-test for basic IPv4-in-IPv6 and IPv6-in-IPv6 functionality.
[1]: https://lore.kernel.org/all/CAA2RiuSnH_2xc+-W6EnFEG00XjS-dszMq61JEvRjcGS31CBw=g@mail.gmail.com/
---
Compared to v3:
* Added missing +x bit to the test script
--- tools/testing/selftests/net/Makefile | 1 + tools/testing/selftests/net/ip6_tunnel.sh | 44 +++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100755 tools/testing/selftests/net/ip6_tunnel.sh
tools/testing/selftests/net/Makefile +1 -0
@@ -43,6 +43,7 @@ TEST_PROGS := \ io_uring_zerocopy_tx.sh \ ioam6.sh \ ip6_gre_headroom.sh \ + ip6_tunnel.sh \ ip_defrag.sh \ ip_local_port_range.sh \ ipv6_flowlabel.sh \
tools/testing/selftests/net/ip6_tunnel.sh new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
2.52.0
Quoted 6 lines · Linus Heckemann
commit
81c734dae203("ip6_tunnel: useskb_vlan_inet_prepare()in__ip6_tnl_rcv()") was fine in and of itself, but its backport to 6.12 (and 6.6) broke IPv4-in-IPv6 tunneling, see [1]. This adds a self-test for basic IPv4-in-IPv6 and IPv6-in-IPv6 functionality.
Quoted 6 lines
[1]: https://lore.kernel.org/all/CAA2RiuSnH_2xc+-W6EnFEG00XjS-dszMq61JEvRjcGS31CBw=g@mail.gmail.com/
Signed-off-by Linus Heckemann <[email protected]>Reviewed-by Hangbin Liu <[email protected]>Reviewed-by Ricardo B. Marlière <[email protected]>Tested-by Ricardo B. Marlière <[email protected]>
Thanks for adding a new test, even if it won't be backported to earlier trees...
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Sat, 21 Feb 2026 12:48:06 +0100 you wrote:
commit
81c734dae203("ip6_tunnel: useskb_vlan_inet_prepare()in__ip6_tnl_rcv()") was fine in and of itself, but its backport to 6.12 (and 6.6) broke IPv4-in-IPv6 tunneling, see [1]. This adds a self-test for basic IPv4-in-IPv6 and IPv6-in-IPv6 functionality.[1]: https://lore.kernel.org/all/CAA2RiuSnH_2xc+-W6EnFEG00XjS-dszMq61JEvRjcGS31CBw=g@mail.gmail.com/
[...]
Here is the summary with links:
- [v4] selftests/net: add test for IP-in-IPv6 tunneling
https://git.kernel.org/netdev/net-next/c/f77c7b960144
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html