Skip to content
Snippets Groups Projects
Commit 3bdca55d authored by Andrea Spadaccini's avatar Andrea Spadaccini Committed by Iustin Pop
Browse files

Preserve bridge MTU in KVM ifup script


Closes: #201 - KVM_IFUP does not set bridge-MTU on tap devices
Signed-off-by: default avatarAndrea Spadaccini <spadaccio@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
(cherry picked from commit a1ec8695)

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 0fc1764f
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,8 @@ fi
ip link set $INTERFACE up
if [ "$MODE" = "bridged" ]; then
ip link set $INTERFACE mtu $(</sys/class/net/${BRIDGE}/mtu)
# Connect the interface to the bridge
brctl addif $BRIDGE $INTERFACE
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment