[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] MTU configuration option on VIF interfaces


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.