From 3bdca55df16ce483ce684daee46a5fea2b2a2055 Mon Sep 17 00:00:00 2001 From: Andrea Spadaccini <spadaccio@google.com> Date: Tue, 11 Oct 2011 14:39:05 +0100 Subject: [PATCH] Preserve bridge MTU in KVM ifup script Closes: #201 - KVM_IFUP does not set bridge-MTU on tap devices Signed-off-by: Andrea Spadaccini <spadaccio@google.com> Reviewed-by: Iustin Pop <iustin@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> (cherry picked from commit a1ec8695a6b453acdc2fa746a27be73c614b2e87) Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- tools/kvm-ifup.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/kvm-ifup.in b/tools/kvm-ifup.in index 4ba17e7f5..2ff8ccb52 100644 --- a/tools/kvm-ifup.in +++ b/tools/kvm-ifup.in @@ -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 -- GitLab