Decrease MTU to account for IPv6 header

(MTU - 50) only supports VxLAN over IPv4, decrease it
to support IPv6 as well, which is 20 bytes larger.

Change-Id: Ifa2633169afe2dd73c78ca7bbfa1a0102caffc95
This commit is contained in:
Brian Haley 2020-11-06 17:31:06 -05:00
parent 88ef27b414
commit a6f45c6942
1 changed files with 2 additions and 2 deletions

View File

@ -121,8 +121,8 @@
SMALLEST_MTU=$MTU
fi
done
# 50 byte overhead for vxlan
echo $(( SMALLEST_MTU - 50 ))
# 70 byte overhead for vxlan + IPv6, which will also support IPv4
echo $(( SMALLEST_MTU - 70 ))
args:
executable: /bin/bash
environment: