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

[Xen-users] Changing MTU of vif

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Changing MTU of vif
From: Tracy R Reed <treed@xxxxxxxxxxxxxxx>
Date: Tue, 25 Mar 2008 00:05:07 -0700
Delivery-date: Tue, 25 Mar 2008 00:05:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.12) Gecko/20080226 Fedora/2.0.0.12-1.fc8 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0
Anyone know how I can automatically set the MTU on a vif when I create the domain? I am using AoE to provide a SAN for my virtual machines and I create a bridge called stbr0 which I connect to eth1 in my domU. I want it to have an mtu of 9000 for performance reasons.

I am using CentOS 5 and I see that the default vif creation script is vif-bridge. I have tried changing vif-bridge like so:

case "$command" in
    online)
        setup_bridge_port "$vif"
        add_to_bridge "$bridge" "$vif"
        if [ ${bridge} = "stbr0" ]; then
                ip link set ${dev} mtu 9000
        fi

so if the bridge we are adding the vif to is stbr0 then we set the mtu to 9000. But this causes the xm create command to hang and I'm not sure why.

Any suggestions on how to get a vif set up with an mtu of 9000? It doesn't seem that I can just say mtu= in the vif= line in my domain config file.

--
Tracy R Reed                  Read my blog at http://ultraviolet.org
Key fingerprint = D4A8 4860 535C ABF8 BA97  25A6 F4F2 1829 9615 02AD
Non-GPG signed mail gets read only if I can find it among the spam.

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