[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] MTU configuration option on VIF interfaces
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |