Try limiting MTU to at least 1280
Change-Id: If8f9907df62019b3cf6d6df7d83d5ff421f6be65
(cherry picked from commit 510f87a033
)
This commit is contained in:

committed by
Jay Faulkner

parent
d0fb7bce54
commit
676d4b2ebf
@@ -8,9 +8,12 @@ source $DEST/ironic/devstack/common_settings
|
||||
# Get the smallest local MTU
|
||||
local_mtu=$(ip link show | sed -ne 's/.*mtu \([0-9]\+\).*/\1/p' | sort -n | head -1)
|
||||
# 50 bytes is overhead for vxlan (which is greater than GRE
|
||||
# allowing us to use either overlay option with this MTU.
|
||||
# allowing us to use either overlay option with this MTU).
|
||||
# However, if traffic is flowing over IPv6 tunnels, then
|
||||
# The overhead is essentially another 100 bytes. In order to
|
||||
# The overhead is essentially another 78 bytes. In order to
|
||||
# handle both cases, lets go ahead and drop the maximum by
|
||||
# 100 bytes.
|
||||
PUBLIC_BRIDGE_MTU=${OVERRIDE_PUBLIC_BRIDGE_MTU:-$((local_mtu - 100))}
|
||||
# 78 bytes, while not going below 1280 to make IPv6 work at all.
|
||||
PUBLIC_BRIDGE_MTU=${OVERRIDE_PUBLIC_BRIDGE_MTU:-$((local_mtu - 78))}
|
||||
if [ $PUBLIC_BRIDGE_MTU -lt 1280 ]; then
|
||||
PUBLIC_BRIDGE_MTU=1280
|
||||
fi
|
||||
|
Reference in New Issue
Block a user