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-users

Re: [Xen-users] Setting vifX.Y's MTU automatically in Xen 3

To: Digimer <linux@xxxxxxxxxxx>
Subject: Re: [Xen-users] Setting vifX.Y's MTU automatically in Xen 3
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Fri, 15 Apr 2011 14:37:34 +0300
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 15 Apr 2011 04:39:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DA82BC0.6060400@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4DA58A1D.5000000@xxxxxxxxxxx> <20110415101219.GZ32595@xxxxxxxxxxx> <4DA82BC0.6060400@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Fri, Apr 15, 2011 at 07:28:00AM -0400, Digimer wrote:
> On 04/15/2011 06:12 AM, Pasi Kärkkäinen wrote:
> > On Wed, Apr 13, 2011 at 07:33:49AM -0400, Digimer wrote:
> >> Hi all,
> >>
> >>   I've got Xen 3.0 (stock as available on CentOS 5.6). I'm trying to use
> >> jumbo frames, but when Xen creates vifX.Y interfaces, it uses 1500. This
> >> brings the xenbrX bridges down to 1500, and effectively messes up
> >> anything thinking that it can use the larger packet size.
> >>
> >>   So how can I make sure that all vifX.Y interfaces created by Xen are
> >> set to a given MTU? I've grepped the files under /etc/xen, but haven't
> >> seen a specific place to set it.
> >>
> >> Thanks!
> >>
> > 
> > I think first I'd try to modify vif-bridge script and make sure
> > MTU of the vif is adjusted before attaching to the bridge.
> > 
> > Verify you get that working, and then let's figure out what's the best way..
> > 
> > -- Pasi
> 
> This fails. I tried adding to 'vif-bridge':
> 
> ====
> case "$command" in
>     online)
>         setup_bridge_port "$vif"
>         ifconfig $vif mtu 9000


Try doing it before setup_bridge_port ?
Do you need to specify a patch for ifconfig?


>         add_to_bridge "$bridge" "$vif"
>         ;;
> ====
> 
> Alternatively, I tried adding to 'xen-network-common.sh':
> 
> ====
> add_to_bridge () {
>     local bridge=$1
>     local dev=$2
> 
>     # Don't add $dev to $bridge if it's already on a bridge.
>     if [ -e "/sys/class/net/${bridge}/brif/${dev}" ]; then
>         ip link set ${dev} up || true
>         return
>     fi
>     ifconfig ${dev} mtu 9000
>     brctl addif ${bridge} ${dev}
>     ip link set ${dev} up
> }
> ====
> 
> Both cases caused the start of the domU to fail, complaining that the
> scripts failed.
> 

Well something goes wrong then.. 

> http://pastebin.com/xstkgYzx
> 

-- Pasi


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