Skip to contentSkip to conversation

selftests: net: Introduce first PMTU test

PATCH Superseded Stefano Brivio 1 participant 1 message Mar 6, 2018

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

---
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  | 160 +++++++++++++++++++++++++++++++++++
 2 files changed, 161 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 +160 -0

160 lines not on this page · raw message

Signature · 1 line
2.15.1