Linux Documentation
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: vjardin@free.fr
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, donald.hunter@gmail.com,
	nicolas.dichtel@6wind.com, horms@kernel.org, corbet@lwn.net,
	skhan@linuxfoundation.org, rdunlap@infradead.org,
	shuah@kernel.org, linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net-next 4/5] selftests: net: add a test of the LISP devices
Date: Fri, 27 Nov 2026 22:25:52 +0000	[thread overview]
Message-ID: <179581835281.3135.9886057049539183734@kernel.org> (raw)
In-Reply-To: <20261126-for-upstream-lisp-v1-v1-4-7382a4bcfd9b@free.fr>

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

  reply	other threads:[~2026-11-27 22:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 21:37 [PATCH net-next 0/5] lisp: add a LISP (RFC 9300) tunnel device Vincent Jardin via B4 Relay
2026-11-26 21:37 ` [PATCH net-next 1/5] lisp: add LISP (Locator/ID Separation Protocol) Vincent Jardin via B4 Relay
2026-11-27 22:25   ` netdev-bot+sashiko
2026-11-26 21:37 ` [PATCH net-next 2/5] netlink: specs: rt-link: add the lisp link type Vincent Jardin via B4 Relay
2026-11-26 21:37 ` [PATCH net-next 3/5] docs: net: document the LISP devices Vincent Jardin via B4 Relay
2026-11-27 22:25   ` netdev-bot+sashiko
2026-11-26 21:37 ` [PATCH net-next 4/5] selftests: net: add a test of " Vincent Jardin via B4 Relay
2026-11-27 22:25   ` netdev-bot+sashiko [this message]
2026-11-26 21:37 ` [PATCH net-next 5/5] selftests: net: add a scale test for LISP Vincent Jardin via B4 Relay
2026-11-27 22:25   ` netdev-bot+sashiko
2026-11-27 10:24 ` [PATCH net-next 0/5] lisp: add a LISP (RFC 9300) tunnel device Matthieu Baerts
2026-11-27 22:47   ` Vincent Jardin

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=179581835281.3135.9886057049539183734@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=donald.hunter@gmail.com \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nicolas.dichtel@6wind.com \
    --cc=pabeni@redhat.com \
    --cc=rdunlap@infradead.org \
    --cc=shuah@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=vjardin@free.fr \
    /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