All of lore.kernel.org
 help / color / mirror / Atom feed
* MTU configuration option on VIF interfaces
@ 2009-10-18 20:13 Peter Viskup
  2009-10-26 22:16 ` Pasi Kärkkäinen
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Viskup @ 2009-10-18 20:13 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 367 bytes --]

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

[-- Attachment #2: xen.diff --]
[-- Type: text/x-patch, Size: 2024 bytes --]

/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)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-27 10:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-18 20:13 MTU configuration option on VIF interfaces Peter Viskup
2009-10-26 22:16 ` Pasi Kärkkäinen
2009-10-27 10:49   ` Peter Viskup

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.