WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] set mtu from bridge also on vif interface

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] set mtu from bridge also on vif interface
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Mon, 7 Feb 2011 10:25:24 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 07 Feb 2011 01:26:06 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1297070730; l=1212; s=domk; d=aepfle.de; h=In-Reply-To:Content-Type:MIME-Version:References:Subject:Cc:To:From: Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=5l/ajdf81Kn/lJ9KdXZRudobDHk=; b=vAMCAIfQvTdjy+3xM69tudT83CH57BUVbQFL+UI/mpA3wylXY8vBskDOR/paPQr/G8H LZhYlxvP6IfrF+S/7f7opYOU1aOO9x9lu372elQGER+rZiOOWmowc3omNEY7kWaKbhYhI 46vgYhUQJWxMPgmB7SnLtVa+Rt+ruTEmcgY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1297069638.13091.727.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20110206134123.GA9752@xxxxxxxxx> <1297069638.13091.727.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
On Mon, Feb 07, Ian Campbell wrote:

> On Sun, 2011-02-06 at 13:41 +0000, Olaf Hering wrote:
> > 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@xxxxxxxxx>
> 
> In my experience the bridge will only allow it's MTU to be set to the
> minimum of all the ports (or 1500ish if there are no ports) and will
> reset to the new minimum when you add a new port.
> 
> So does this patch do anything in the absence of the ability to
> configure the MTU of a VIF from the toolstack?

This depends if the bridge interface is part of the Xen toolstack
configuration or if the bridge is part of the system configuration. In
my setup the bridge is part of the system configuration and gets its mtu
from the config of the physical interface, eth0 in my case. So br0 has
mtu of 9000 already when vif-bridge runs.

With this change, the vif interfaces follow the system configuration.

Olaf

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel