Last change
on this file since 2165 was
2019,
checked in by broder, 16 years ago
|
Turn off transmission segmentation offloading instead of tx checksum
offloading
|
-
Property svn:executable set to
*
|
File size:
594 bytes
|
Rev | Line | |
---|
[1637] | 1 | #!/bin/sh |
---|
| 2 | # |
---|
| 3 | # This script disables checksumming within the domU |
---|
| 4 | # |
---|
| 5 | |
---|
| 6 | prefix=$1 |
---|
| 7 | |
---|
| 8 | # |
---|
| 9 | # Source the common functions |
---|
| 10 | # |
---|
| 11 | if [ -e /usr/lib/xen-tools/common.sh ]; then |
---|
| 12 | . /usr/lib/xen-tools/common.sh |
---|
| 13 | else |
---|
| 14 | . ./hooks/common.sh |
---|
| 15 | fi |
---|
| 16 | |
---|
| 17 | logMessage Script $0 starting |
---|
| 18 | |
---|
| 19 | # To avoid UDP checksum problems. |
---|
| 20 | installDebianPackage ${prefix} ethtool |
---|
| 21 | |
---|
[2019] | 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" |
---|
| 24 | exit 1 |
---|
| 25 | fi |
---|
[1637] | 26 | |
---|
| 27 | # |
---|
| 28 | # Log our finish |
---|
| 29 | # |
---|
| 30 | logMessage Script $0 finished |
---|
Note: See
TracBrowser
for help on using the repository browser.