From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH] set mtu from bridge also on vif interface Date: Sun, 6 Feb 2011 14:41:23 +0100 Message-ID: <20110206134123.GA9752@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 --- tools/hotplug/Linux/vif-bridge | 5 +++++ 1 file changed, 5 insertions(+) --- xen-unstable.hg-4.1.22870.orig/tools/hotplug/Linux/vif-bridge +++ xen-unstable.hg-4.1.22870/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" ;;