Hopefully fix IPv6 fwding perf by disabling GSO

Apparently GSO (Generic Segmentation Offload) doesn't
work quite right when forwarding IPv6 in a virtual
environment.  It provides negligible improvements
to performance anyway, so let's just disable it
outright.
This commit is contained in:
Jeremy Hanmer 2014-09-23 14:19:17 -07:00
parent d82d16aeab
commit 89a127439e
1 changed files with 13 additions and 0 deletions

View File

@ -36,6 +36,19 @@ EOF
fi
echo "[*] Configure GRUB"
cat << EOF > /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=Debian
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
# Disable GSO (Generic Segmentation Offload) in order to improve IPv6 forwarding performance
GRUB_CMDLINE_LINUX="debian-installer=en_US virtio_net.gso=0"
EOF
/usr/sbin/update-grub
echo "[*] APT Update"
apt-get update || exit 1