Re: [PATCH net-next 4/5] selftests: net: add a test of the LISP devices
From: netdev-bot+sashiko
Date: Fri Nov 27 2026 - 17:26:04 EST
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The whole selftest needs an iproute2 that supports the new 'lisp'
link type, and nothing in the series says so.
- [Low] In mtu_test() (tools/testing/selftests/net/lisp.sh:468-492), the
`for family in 4 6` loop flushes h1's route caches only after both…
--
selftests: net: add a test of the LISP devices
This adds tools/testing/selftests/net/lisp.sh. In the test, two xTRs carry
the traffic of two hosts through a core router. x1 keeps its EIDs and its
RLOCs in separate VRFs, and x2 uses its main table. The net selftest
config, the Makefile and MAINTAINERS are updated to match.
> diff --git a/tools/testing/selftests/net/lisp.sh b/tools/testing/selftests/net/lisp.sh
> new file mode 100755
> index 0000000000000..780053db366bc
> --- /dev/null
> +++ b/tools/testing/selftests/net/lisp.sh
> @@ -0,0 +1,1120 @@
[ ... ]
> +mtu_test()
> +{
> + local family
> +
> + for family in 4 6; do
> + RET=0
> + use_rlocs "$family"
> +
> + h1_ping -M do -s 1416 10.2.0.2
> + check_err $? "an IPv4 packet of 1444 bytes is lost"
> + h1_ping -M do -s 1417 10.2.0.2
> + check_fail $? "an IPv4 packet of 1445 bytes goes through"
> + h1_ping -s 1396 fd00:2::2
> + check_err $? "an IPv6 packet of 1444 bytes is lost"
> + h1_ping -s 1397 fd00:2::2
> + check_fail $? "an IPv6 packet of 1445 bytes goes through"
> + h1_ping -s 3000 10.2.0.2
> + check_err $? "IPv4 fragments are lost"
> +
> + log_test "Device MTU with IPv$family RLOCs"
> + done
> +
> + ip -n "$h1" route flush cache
> + ip -n "$h1" -6 route flush cache
[Severity: Low]
Does the IPv6 RLOC pass of this loop still exercise x1's lisp101?
In the first pass, x1 refuses the 1445 byte pings because lisp101 has an
MTU of 1444, which lisp_setup() sets:
dev->mtu = ETH_DATA_LEN - LISP_IPV6_HLEN;
h1 then caches a PMTU of 1444 for 10.2.0.2 and for fd00:2::2. Those caches
are flushed only after the loop ends. pmtu_family_test() and
frag_family_test() flush on every pass.
In the second pass:
- h1_ping -M do -s 1417 10.2.0.2 fails on h1 itself with EMSGSIZE and
never reaches x1. The check_fail passes no matter what lisp101 does.
- h1_ping -s 1397 fd00:2::2 is fragmented on h1 to the cached 1444, so x1
forwards it. The check_fail passes only because x2's lisp101 refuses the
1445 byte reply from h2.
- h1_ping -s 3000 10.2.0.2 is fragmented on h1 to 1444 in both passes, so
x1 never handles an oversized packet in this test.
Would flushing h1's caches at the end of each pass keep the second pass
meaningful?
[ ... ]
> +require_command jq
> +
> +if ! ip link help lisp 2>&1 | grep -q "^Usage: ... lisp"; then
> + echo "SKIP: iproute2 does not know the lisp devices"
> + exit "$ksft_skip"
> +fi
[Severity: Low]
This isn't a bug, but the whole test needs an iproute2 that supports the
lisp link type. That covers "type lisp id N local A local A6", "external",
"link-netns", and the info_data JSON keys id, local, local6 and external.
Neither the commit message nor Documentation/networking/lisp.rst mentions
this dependency or points to the iproute2 change. With a stock iproute2,
the test always stops here with SKIP.
Could the commit message say which iproute2 version or patch is needed?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261126-for-upstream-lisp-v1-v1-0-7382a4bcfd9b%40free.fr