update 2022-10-04 09:15:24
This commit is contained in:
parent
fc93ff56fe
commit
3426c83637
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue