Skip to content

Commit

Permalink
selftests: pmtu: Minimum MTU for vti6 is 68
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefano Brivio authored and David S. Miller committed Apr 27, 2018
1 parent c36207b commit 5a643c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testing/selftests/net/pmtu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ test_pmtu_vti6_link_add_mtu() {

fail=0

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

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

0 comments on commit 5a643c8

Please sign in to comment.