All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] set mtu from bridge also on vif interface
@ 2011-02-06 13:41 Olaf Hering
  2011-02-06 13:42 ` [PATCH] netback: allow arbitrary mtu size until frontend connects Olaf Hering
  2011-02-07  9:07 ` [PATCH] set mtu from bridge also on vif interface Ian Campbell
  0 siblings, 2 replies; 13+ messages in thread
From: Olaf Hering @ 2011-02-06 13:41 UTC (permalink / raw)
  To: xen-devel

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>

---
 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"
         ;;

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-02-07 15:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-06 13:41 [PATCH] set mtu from bridge also on vif interface Olaf Hering
2011-02-06 13:42 ` [PATCH] netback: allow arbitrary mtu size until frontend connects Olaf Hering
2011-02-07  9:03   ` Jan Beulich
2011-02-07  9:11     ` Ian Campbell
2011-02-07  9:49       ` Jan Beulich
2011-02-07 10:15         ` Ian Campbell
2011-02-07  9:26     ` Olaf Hering
2011-02-07  9:34       ` Ian Campbell
2011-02-07  9:52         ` Olaf Hering
2011-02-07 15:30         ` Olaf Hering
2011-02-07  9:07 ` [PATCH] set mtu from bridge also on vif interface Ian Campbell
2011-02-07  9:25   ` Olaf Hering
2011-02-07  9:36     ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.