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: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: Re: [Xen-users] Setting vifX.Y's MTU automatically in Xen 3
From: Digimer <linux@xxxxxxxxxxx>
Date: Fri, 15 Apr 2011 07:28:00 -0400
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 15 Apr 2011 04:29:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110415101219.GZ32595@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9
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
        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.

http://pastebin.com/xstkgYzx

-- 
Digimer
E-Mail: digimer@xxxxxxxxxxx
AN!Whitepapers: http://alteeve.com
Node Assassin:  http://nodeassassin.org

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