Skip to contentSkip to conversation

selftests: net: Introduce first PMTU test

PATCH Applied Stefano Brivio 3 participants 3 messages Mar 6, 2018 – Mar 7, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 selftests: net: Introduce first PMTU test

One single test implemented so far: test_pmtu_vti6_exception checks that the PMTU of a route exception, caused by a tunnel exceeding the link layer MTU, is affected by administrative changes of the tunnel MTU. Creation of the route exception is checked too.

---
v3: Explicitly set veth MTU before causing route exception to ensure we actually
decrease the PMTU as second step in the test (issue reported by David Ahern)

v2: Fix error handling for setup_*() functions, make 'ip route get' output
parsing more robust, sleep after configuring vti6 addresses (all issues reported by David Ahern)

 tools/testing/selftests/net/Makefile |   2 +-
 tools/testing/selftests/net/pmtu.sh  | 163 +++++++++++++++++++++++++++++++++++
 2 files changed, 164 insertions(+), 1 deletion(-)
 create mode 100755 tools/testing/selftests/net/pmtu.sh
tools/testing/selftests/net/Makefile +1 -1
index 229a038966e3..785fc18a16b4 100644
@@ -5,7 +5,7 @@ CFLAGS =  -Wall -Wl,--no-as-needed -O2 -g
 CFLAGS += -I../../../../usr/include/
 
 TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh netdevice.sh rtnetlink.sh
-TEST_PROGS += fib_tests.sh fib-onlink-tests.sh
+TEST_PROGS += fib_tests.sh fib-onlink-tests.sh pmtu.sh
 TEST_GEN_FILES =  socket
 TEST_GEN_FILES += psock_fanout psock_tpacket msg_zerocopy
 TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
tools/testing/selftests/net/pmtu.sh new file +163 -0

163 lines not on this page · raw message

Signature · 1 line
2.15.1
Acked-by on v3 1/1
#1 lore raw
Quoted 12 lines · Stefano Brivio

One single test implemented so far: test_pmtu_vti6_exception checks that the PMTU of a route exception, caused by a tunnel exceeding the link layer MTU, is affected by administrative changes of the tunnel MTU. Creation of the route exception is checked too.

---
v3: Explicitly set veth MTU before causing route exception to ensure we actually
decrease the PMTU as second step in the test (issue reported by David Ahern)

Quoted 9 lines

v2: Fix error handling for setup_*() functions, make 'ip route get' output
parsing more robust, sleep after configuring vti6 addresses (all issues reported by David Ahern)

 tools/testing/selftests/net/Makefile |   2 +-
 tools/testing/selftests/net/pmtu.sh  | 163 +++++++++++++++++++++++++++++++++++
 2 files changed, 164 insertions(+), 1 deletion(-)
 create mode 100755 tools/testing/selftests/net/pmtu.sh
maintainer Applied
#2 lore raw
In reply to Stefano Brivio

From: Stefano Brivio <[email protected]>
Date: Tue, 6 Mar 2018 22:16:27 +0100

Quoted 8 lines

One single test implemented so far: test_pmtu_vti6_exception checks that the PMTU of a route exception, caused by a tunnel exceeding the link layer MTU, is affected by administrative changes of the tunnel MTU. Creation of the route exception is checked too.

Quoted 7 lines

---
v3: Explicitly set veth MTU before causing route exception to ensure we actually
decrease the PMTU as second step in the test (issue reported by David Ahern)

v2: Fix error handling for setup_*() functions, make 'ip route get' output
parsing more robust, sleep after configuring vti6 addresses (all issues reported by David Ahern)

Applied.