Disables TCP offloading on all ifaces

Odgovori
Korisnikov avatar
atari
Site Admin
Postovi: 224
Pridružio se: 09 Apr 2008, 04:18
Lokacija: milky way
Kontakt:

Disables TCP offloading on all ifaces

Post: # 307Post atari »

isprobano na proxmoxu 7.1-12 koji je imao problem sa drajverima za mreznu karticu.

pcie_aspm=off

nano /etc/network/interfaces
#!/bin/bash
#
# Disables TCP offloading on all ifaces
#
# Inspired by: @Michelunik https://serverfault.com/a/422554/62953

RUN=true
case "${IF_NO_TOE,,}" in
no|off|false|disable|disabled)
RUN=false
;;
esac


# Other offloading options that could be disabled (not TCP related):
# sg tso ufo gso gro lro rxvlan txvlan rxhash
# see man ethtool

if [ "$MODE" = start -a "$RUN" = true ]; then
TOE_OPTIONS="rx tx"
for TOE_OPTION in $TOE_OPTIONS; do
/sbin/ethtool --offload "$IFACE" "$TOE_OPTION" off &>/dev/null || true
done
fi
Odgovori