1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00
This commit is contained in:
Ycarus (Yannick Chabanois) 2023-04-23 20:23:11 +02:00
parent adc1ba3d5d
commit 368534b006

View file

@ -117,19 +117,19 @@ interface_multipath_settings() {
config_get mode "$config" multipath
id=$metric
[ -n "$iface" ] && {
gro=$(uci -q network.${config}.gro)
gro=$(uci -q get network.${config}.gro)
[ "$gro" = "1" ] && ethtool -K $iface gro on 2>&1 >/dev/null
[ "$gro" = "0" ] && ethtool -K $iface gro on 2>&1 >/dev/null
gso=$(uci -q network.${config}.gso)
gso=$(uci -q get network.${config}.gso)
[ "$gso" = "1" ] && ethtool -K $iface gso on 2>&1 >/dev/null
[ "$gso" = "0" ] && ethtool -K $iface gso on 2>&1 >/dev/null
lro=$(uci -q network.${config}.lro)
lro=$(uci -q get network.${config}.lro)
[ "$lro" = "1" ] && ethtool -K $iface lro on 2>&1 >/dev/null
[ "$lro" = "0" ] && ethtool -K $iface lro on 2>&1 >/dev/null
ufo=$(uci -q network.${config}.ufo)
ufo=$(uci -q get network.${config}.ufo)
[ "$ufo" = "1" ] && ethtool -K $iface ufo on 2>&1 >/dev/null
[ "$ufo" = "0" ] && ethtool -K $iface ufo on 2>&1 >/dev/null
tso=$(uci -q network.${config}.tso)
tso=$(uci -q get network.${config}.tso)
[ "$tso" = "1" ] && ethtool -K $iface tso on 2>&1 >/dev/null
[ "$tso" = "0" ] && ethtool -K $iface tso on 2>&1 >/dev/null
}