3 # This script disables checksumming within the domU
9 # Source the common functions
11 if [ -e /usr/lib/xen-tools/common.sh ]; then
12 . /usr/lib/xen-tools/common.sh
17 logMessage Script $0 starting
19 # To avoid UDP checksum problems.
20 installDebianPackage ${prefix} ethtool
22 if ! sed -i -e 's/^\(\s*\)#\s*post-up\s\+ethtool/\1post-up ethtool -K eth0 tso off\n\0/' ${prefix}/etc/network/interfaces; then
23 echo "ERROR: unable to disable network segmentation offloading"
30 logMessage Script $0 finished