selftests: net: Introduce first PMTU test
Subsystems (3)
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.
Requested-by David Ahern <[email protected]>
Signed-off-by Stefano Brivio <[email protected]>
---
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
@@ -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