update 2022-10-04 09:15:24

This commit is contained in:
github-actions[bot] 2022-10-04 09:15:24 +08:00
parent fc93ff56fe
commit 3426c83637
1 changed files with 4 additions and 2 deletions

View File

@ -6,8 +6,10 @@ START=95
disable_gro() {
which ethtool &>/dev/null || return 0
for eth in $(ifconfig | grep "^eth\|^dsa" | awk '{print $1}' | sort | uniq); do
ethtool -k eth0 | grep -q "generic-segmentation-offload: on" || {
ethtool -K "$eth" gro off
logger -t natfflow "disable gro for <$eth>"
}
done
}