2013-10-24 23:00:35 +02:00
|
|
|
# HG changeset patch
|
|
|
|
# User Charles Arnold <carnold@suse.com>
|
|
|
|
# Date 1379427987 -3600
|
|
|
|
# Node ID e6da6ffd6749237316d4440799f0a0272bbdae9c
|
|
|
|
# Parent 5597ce99ec7f2587a29f3b2dee0bde98d59bf327
|
|
|
|
tools/hotplug: set mtu from bridge for tap interface
|
|
|
|
|
|
|
|
With changeset 22885 support was added for setting the MTU in the vif-bridge
|
|
|
|
script for when a vif interface was set to 'online'. The was not done for the
|
|
|
|
'add' operation. The 'add' operation was added to the script for when tap
|
|
|
|
devices were specified (c/s 21944). With the setting of the MTU for the
|
|
|
|
'online' case was there a reason for omitting the 'add'?
|
|
|
|
|
|
|
|
This patch sets the MTU for both 'online' and 'add' in the vif-bridge script.
|
|
|
|
|
|
|
|
Signed-off-by: Charles Arnold <carnold@suse.com>
|
|
|
|
Acked-by: Ian Campbell <ian.campbell@citrix.com>
|
|
|
|
|
2014-01-02 20:09:07 +01:00
|
|
|
Index: xen-4.4.0-testing/tools/hotplug/Linux/vif-bridge
|
2013-10-24 23:00:35 +02:00
|
|
|
===================================================================
|
2014-01-02 20:09:07 +01:00
|
|
|
--- xen-4.4.0-testing.orig/tools/hotplug/Linux/vif-bridge
|
|
|
|
+++ xen-4.4.0-testing/tools/hotplug/Linux/vif-bridge
|
|
|
|
@@ -88,7 +88,7 @@ fi
|
2013-10-24 23:00:35 +02:00
|
|
|
case "$command" in
|
|
|
|
online)
|
|
|
|
setup_virtual_bridge_port "$dev"
|
2014-01-02 20:09:07 +01:00
|
|
|
- set_mtu $bridge $dev
|
2013-10-24 23:00:35 +02:00
|
|
|
+ set_mtu "$bridge" "$dev"
|
|
|
|
add_to_bridge "$bridge" "$dev"
|
|
|
|
;;
|
|
|
|
|
2014-01-02 20:09:07 +01:00
|
|
|
@@ -99,7 +99,7 @@ case "$command" in
|
2013-10-24 23:00:35 +02:00
|
|
|
|
|
|
|
add)
|
|
|
|
setup_virtual_bridge_port "$dev"
|
2014-01-02 20:09:07 +01:00
|
|
|
- set_mtu $bridge $dev
|
2013-10-24 23:00:35 +02:00
|
|
|
+ set_mtu "$bridge" "$dev"
|
|
|
|
add_to_bridge "$bridge" "$dev"
|
|
|
|
;;
|
|
|
|
esac
|