From: Peter Viskup <skupko.sk@gmail.com>
To: xen-devel@lists.xensource.com
Subject: MTU configuration option on VIF interfaces
Date: Sun, 18 Oct 2009 22:13:12 +0200 [thread overview]
Message-ID: <4ADB76D8.4090200@gmail.com> (raw)
[-- 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
next reply other threads:[~2009-10-18 20:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 20:13 Peter Viskup [this message]
2009-10-26 22:16 ` MTU configuration option on VIF interfaces Pasi Kärkkäinen
2009-10-27 10:49 ` Peter Viskup
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ADB76D8.4090200@gmail.com \
--to=skupko.sk@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.