netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 1/2] selftests: pmtu: maximum MTU for vti4 is 2^16-1-20
@ 2018-08-30 14:01 Sabrina Dubroca
  2018-08-30 14:01 ` [PATCH net 2/2] selftests: pmtu: detect correct binary to ping ipv6 addresses Sabrina Dubroca
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Sabrina Dubroca @ 2018-08-30 14:01 UTC (permalink / raw)
  To: netdev; +Cc: Sabrina Dubroca, Stefano Brivio, Nicolas Dichtel

Since commit 82612de1c98e ("ip_tunnel: restore binding to ifaces with a
large mtu"), the maximum MTU for vti4 is based on IP_MAX_MTU instead of
the mysterious constant 0xFFF8.  This makes this selftest fail.

Fixes: 82612de1c98e ("ip_tunnel: restore binding to ifaces with a large mtu")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Stefano Brivio <sbrivio@redhat.com>
---
 tools/testing/selftests/net/pmtu.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/pmtu.sh b/tools/testing/selftests/net/pmtu.sh
index f8cc38afffa2..0ecf2609b9a4 100755
--- a/tools/testing/selftests/net/pmtu.sh
+++ b/tools/testing/selftests/net/pmtu.sh
@@ -334,7 +334,7 @@ test_pmtu_vti4_link_add_mtu() {
 	fail=0
 
 	min=68
-	max=$((65528 - 20))
+	max=$((65535 - 20))
 	# Check invalid values first
 	for v in $((min - 1)) $((max + 1)); do
 		${ns_a} ip link add vti4_a mtu ${v} type vti local ${veth4_a_addr} remote ${veth4_b_addr} key 10 2>/dev/null
-- 
2.18.0

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

end of thread, other threads:[~2018-09-01 10:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-30 14:01 [PATCH net 1/2] selftests: pmtu: maximum MTU for vti4 is 2^16-1-20 Sabrina Dubroca
2018-08-30 14:01 ` [PATCH net 2/2] selftests: pmtu: detect correct binary to ping ipv6 addresses Sabrina Dubroca
2018-09-01  6:14   ` David Miller
2018-08-30 15:41 ` [PATCH net 1/2] selftests: pmtu: maximum MTU for vti4 is 2^16-1-20 Nicolas Dichtel
2018-09-01  6:14 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).