Reduce the default MTU

This commit is contained in:
Martynas Pumputis committed 2017-01-31 17:21:01 +00:00
1 parent 50985dee90
commit 07892bff7d
2 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -39,8 +39,8 @@ C2=10.2.1.7
start_suite "Ping over encrypted cross-host weave network (fastdp)" start_suite "Ping over encrypted cross-host weave network (fastdp)"
WEAVE_MTU=1300 weave_on $HOST1 launch --password wfvAwt7sj weave_on $HOST1 launch --password wfvAwt7sj
WEAVE_MTU=1300 weave_on $HOST2 launch --password wfvAwt7sj $HOST1 weave_on $HOST2 launch --password wfvAwt7sj $HOST1
assert_raises "weave_on $HOST1 status connections | grep -P 'encrypted *fastdp'" assert_raises "weave_on $HOST1 status connections | grep -P 'encrypted *fastdp'"
assert_raises "weave_on $HOST2 status connections | grep -P 'encrypted *fastdp'" assert_raises "weave_on $HOST2 status connections | grep -P 'encrypted *fastdp'"
+3 -2
View File
@@ -704,8 +704,9 @@ init_fastdp() {
# a local network, at 1460 bytes. To get the overlay MTU from that we # a local network, at 1460 bytes. To get the overlay MTU from that we
# subtract 20 bytes for the outer IPv4 header, 8 bytes for the outer # subtract 20 bytes for the outer IPv4 header, 8 bytes for the outer
# UDP header, 8 bytes for the vxlan header, and 14 bytes for the inner # UDP header, 8 bytes for the vxlan header, and 14 bytes for the inner
# ethernet header. # ethernet header. In addition, we subtract 34 bytes for the ESP overhead
MTU=${WEAVE_MTU:-1410} # which is needed for the vxlan encryption.
MTU=${WEAVE_MTU:-1376}
# create_bridge already created the datapath netdev # create_bridge already created the datapath netdev
ip link set dev $DATAPATH mtu $MTU ip link set dev $DATAPATH mtu $MTU