update 2022-10-04 09:15:24
This commit is contained in:
parent
fc93ff56fe
commit
3426c83637
|
@ -6,8 +6,10 @@ START=95
|
||||||
disable_gro() {
|
disable_gro() {
|
||||||
which ethtool &>/dev/null || return 0
|
which ethtool &>/dev/null || return 0
|
||||||
for eth in $(ifconfig | grep "^eth\|^dsa" | awk '{print $1}' | sort | uniq); do
|
for eth in $(ifconfig | grep "^eth\|^dsa" | awk '{print $1}' | sort | uniq); do
|
||||||
ethtool -K "$eth" gro off
|
ethtool -k eth0 | grep -q "generic-segmentation-offload: on" || {
|
||||||
logger -t natfflow "disable gro for <$eth>"
|
ethtool -K "$eth" gro off
|
||||||
|
logger -t natfflow "disable gro for <$eth>"
|
||||||
|
}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue