mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Decrease txqueuelen
This commit is contained in:
parent
2946dea4a1
commit
2ebbaa57a6
1 changed files with 4 additions and 4 deletions
|
@ -190,9 +190,9 @@ interface_multipath_settings() {
|
||||||
ip route replace default via $gateway dev $iface
|
ip route replace default via $gateway dev $iface
|
||||||
}
|
}
|
||||||
[ "$mode" = "off" ] && {
|
[ "$mode" = "off" ] && {
|
||||||
ifconfig $iface txqueuelen 90 > /dev/null 2>&1
|
ifconfig $iface txqueuelen 50 > /dev/null 2>&1
|
||||||
} || {
|
} || {
|
||||||
ifconfig $iface txqueuelen 10000 > /dev/null 2>&1
|
ifconfig $iface txqueuelen 100 > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
if [ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "1" ] && [ "$config" != "omr6in4" ]; then
|
if [ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "1" ] && [ "$config" != "omr6in4" ]; then
|
||||||
|
@ -271,9 +271,9 @@ interface_multipath_settings() {
|
||||||
ip -6 route replace default via $gateway6 dev $iface
|
ip -6 route replace default via $gateway6 dev $iface
|
||||||
}
|
}
|
||||||
[ "$mode" = "off" ] && {
|
[ "$mode" = "off" ] && {
|
||||||
ifconfig $iface txqueuelen 90 > /dev/null 2>&1
|
ifconfig $iface txqueuelen 50 > /dev/null 2>&1
|
||||||
} || {
|
} || {
|
||||||
ifconfig $iface txqueuelen 10000 > /dev/null 2>&1
|
ifconfig $iface txqueuelen 100 > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue