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

Re: [Xen-devel] [PATCH] enable ethtool for xen loopback interface(networ

To: "Jan Niehusmann" <jan@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] enable ethtool for xen loopback interface(network in dom0)
From: Greg Brackley <lists-xen-devel@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Jan 2006 22:11:42 +1300
Delivery-date: Tue, 24 Jan 2006 09:20:23 +0000
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Lucid Solutions Ltd
References: <20060114115803.GA5863@xxxxxxxxxx>
Reply-to: Greg Brackley <greg.brackley-dated-1138698706.791a61@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
----- Original Message ----- From: "Jan Niehusmann" <jan@xxxxxxxxxx>
this patch allows disabling the tx checksums on the xen loopback
interface, which is used for the virtual interfaces of dom0 instead
of netfront/netback.

Great patch thanks. I finally got around to upgrading a box to Xen 3.0 testing (changeset 8269:a91e4dcf629d), applied the patch and it works a dream. I can now bridge the xen0 domain onto a VLAN interface with a pro/1000 MT server NIC (82546EB).

I am using Fedora Core 4 (which doesn't appear to support -K ethtool options in the initscripts), and have added a /sbin/ifup-local script [1] to the system. This in conjunction with adding 'ETHTOOL_KOPTS="tx off"' [2] to my interface configuration works well (Note: I use the standard initscripts to bring up the networking, and not 'network-bridge').

I'm concerned that there may be some performance hit with software checksumming, but I'm happy with working rather than faster. Getting jumbo frame support in the domU's would be probably be a better performance boost.

Greg :-)

--
[1] /sbin/ifup-local
#!/bin/sh

cd /etc/sysconfig/network-scripts
. network-functions

[ -f ../network ] && . ../network

CONFIG="ifcfg-${1}"
source_config

if [ -n "$ETHTOOL_KOPTS" ] ; then
       REALDEVICE=${DEVICE%%:*}
       /sbin/ethtool -K ${REALDEVICE} $ETHTOOL_KOPTS
fi


[2]  /etc/sysconfig/network-scripts/ifcfg-veth0
DEVICE=veth0
TYPE=Ethernet
ONBOOT=yes
IPADDR=192.168.133.1
NETMASK=255.255.255.0
MACADDR=00:aa:00:00:85:01
NOZEROCONF=yes
GATEWAY=192.168.133.254
ARP=yes
ETHTOOL_KOPTS="tx off"


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

<Prev in Thread] Current Thread [Next in Thread>