Skip to content

Commit 5a643c8

Browse files
sbrivio-rhdavem330
authored andcommitted
selftests: pmtu: Minimum MTU for vti6 is 68
A vti6 interface can carry IPv4 packets too. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c36207b commit 5a643c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/net/pmtu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ test_pmtu_vti6_link_add_mtu() {
368368

369369
fail=0
370370

371-
min=1280
371+
min=68 # vti6 can carry IPv4 packets too
372372
max=$((65535 - 40))
373373
# Check invalid values first
374374
for v in $((min - 1)) $((max + 1)); do
@@ -384,7 +384,7 @@ test_pmtu_vti6_link_add_mtu() {
384384
done
385385

386386
# Now check valid values
387-
for v in 1280 1300 $((65535 - 40)); do
387+
for v in 68 1280 1300 $((65535 - 40)); do
388388
${ns_a} ip link add vti6_a mtu ${v} type vti6 local ${veth6_a_addr} remote ${veth6_b_addr} key 10
389389
mtu="$(link_get_mtu "${ns_a}" vti6_a)"
390390
${ns_a} ip link del vti6_a

0 commit comments

Comments
 (0)