diff options
author | Olaf Hering <olaf@aepfle.de> | 2011-02-07 16:55:25 +0000 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2011-02-07 16:55:25 +0000 |
commit | 0f850909c83852a4c230b6ec73def7f33f4808ad (patch) | |
tree | 92c9a1f19ac6d0db9877297179564182f71b9ad6 | |
parent | f681990e7fd01564a6b9b847cfc979a7274d96cb (diff) | |
download | xen-0f850909c83852a4c230b6ec73def7f33f4808ad.tar.gz xen-0f850909c83852a4c230b6ec73def7f33f4808ad.tar.bz2 xen-0f850909c83852a4c230b6ec73def7f33f4808ad.zip |
tools/hotplug: set mtu from bridge also on vif interface
Apply mtu size from bridge interface also in vif interface.
This depends on a kernel change which allows arbitrary mtu sizes until
the frontend driver has connected to the backend driver. Without this
kernel change, the vif mtu size will be limited to 1500 even with this
change to the vif-bridge script.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <Ian.Campbell@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r-- | tools/hotplug/Linux/vif-bridge | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/hotplug/Linux/vif-bridge b/tools/hotplug/Linux/vif-bridge index 1cbdd8af61..1498805379 100644 --- a/tools/hotplug/Linux/vif-bridge +++ b/tools/hotplug/Linux/vif-bridge @@ -82,6 +82,11 @@ fi case "$command" in online) setup_virtual_bridge_port "$dev" + mtu="`ip link show $bridge | awk '/mtu/ { print $5 }'`" + if [ -n "$mtu" ] && [ "$mtu" -gt 0 ] + then + ip link set $dev mtu $mtu || : + fi add_to_bridge "$bridge" "$dev" ;; |