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

[Xen-devel] MTU configuration option on VIF interfaces

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] MTU configuration option on VIF interfaces
From: Peter Viskup <skupko.sk@xxxxxxxxx>
Date: Sun, 18 Oct 2009 22:13:12 +0200
Delivery-date: Sun, 18 Oct 2009 13:13:55 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=nLXZNdzFqEby0WItSZMkpLcf5OmfhwpFnpuH/lFvMew=; b=CZ5ZlinxHzaABKunsfvsws5BsVXRaY3dGAvXjap4ZAXCbQ655cUvZF2KqnzwAsFR9N NUXfDS/DxTHBDPniixF9nln2LuB9n6XXoQoeyV4/MhuvusFs9Wp9ky090frSGGquD+bn IuELW6+h1fmUuqvOIlmqRJpvLd3ZlkcMMo130=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=qb1nCvT6XfMrgs/QkSert6m0PZEU/nKGda8eAJPwPmVOvc8hLBg/XcF1kJ0n7Zinuj iniwzQM+29tcNt7WGsIYqUkMdQ/1TepmnvC/KQPV/vfdEAY3DOZ8wQo7Sv+eKEPpGOnA +rHd7MSridQUpeijMqcYZBOyoU3y+sKDJuOzk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)
Hello all,
I did some 'development' work and not sure if it will work.
I would have possibility to set MTU size for virtual interfaces.
I tried to set mtu in /etc/xen/scripts/vif-nat first, but this did not work.
Could somebody review my diff's made on Debian Lenny? You know - I am not a python developer and not a developer at all. ;-)

Best regards,
Peter Viskup
/usr/lib/xen-3.2-1/lib/python/xen/xend/XendDomainInfo.py
2625,2629c2625
< #            config['MTU'] = 1500 # TODO
<             if not config.has_key('MTU'):
<                 config['MTU'] = config.get('mtu', '')
<             else:
<                 config['MTU'] = 1500
---
>             config['MTU'] = 1500 # TODO
/usr/lib/xen-3.2-1/lib/python/xen/xend/server/netif.py
117d116
<         mtu     = config.get('mtu')
125,126c124
<                  'mac'    : mac,
<                  'mtu'    : mtu }
---
>                  'mac'    : mac }
158,159c156
<                       'mac'    : mac,
<                       'mtu'    : mtu }
---
>                       'mac'    : mac }
198c195
<                    'security_label', 'mtu'):
---
>                    'security_label'):
205c202
<          model, accel, security_label, mtu) = devinfo
---
>          model, accel, security_label) = devinfo
229,230d225
<         if mtu:
<             result['mtu'] = mtu
/usr/lib/xen-3.2-1/lib/python/xen/xend/XendVnet.py
97c97
<     def vifctl(self, op, vif, vmac, vmtu):
---
>     def vifctl(self, op, vif, vmac):
100c100
<             return vnet_cmd([fn, ['vnet', self.id], ['vif', vif], ['vmac', 
vmac], ['vmtu', vmtu]])
---
>             return vnet_cmd([fn, ['vnet', self.id], ['vif', vif], ['vmac', 
> vmac]])
102c102
<             log.warning("vifctl failed: op=%s vif=%s mac=%s", op, vif, vmac, 
vmtu)
---
>             log.warning("vifctl failed: op=%s vif=%s mac=%s", op, vif, vmac)
/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py
168c168
<                         '[accel=<accel>] [mtu=<mtu>]',
---
>                         '[accel=<accel>]',
2129c2129
<                   'backend', 'vifname', 'rate', 'model', 'accel', 'mtu']
---
>                   'backend', 'vifname', 'rate', 'model', 'accel']
2178,2180c2178
<                 lambda x: set(['other_config', 'accel'], x),
<             'mtu':
<                 lambda x: set(['other_config', 'mtu'], x)
---
>                 lambda x: set(['other_config', 'accel'], x)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>