aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/base-files/etc
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-16 14:46:42 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-28 14:34:35 +0200
commit670eeb788801db8c3ed2843be357bb77a3aa5c5f (patch)
tree0703c7fbcb51dae1beb4adda29e3a57c632c294e /target/linux/mediatek/base-files/etc
parent9c58f5d4ffa3f97312a29cc135300a5bf29dd162 (diff)
downloadupstream-670eeb788801db8c3ed2843be357bb77a3aa5c5f.tar.gz
upstream-670eeb788801db8c3ed2843be357bb77a3aa5c5f.tar.bz2
upstream-670eeb788801db8c3ed2843be357bb77a3aa5c5f.zip
mediatek: fix IPv4-only corner case and commit in 99-net-ps
The uci config section network.globals set up in /bin/config_generate will only be created if /proc/sys/net/ipv6 exists. Correspondingly, lacking IPv6 support, the command uci set network.globals.packet_steering=1 will fail with "uci: Invalid argument" as the network.globals config has not been set up. Fix that by adding the setup there as well. While at it, limit the uci commit to the network config file. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 636b62e8e232951154ac4ccd7972fda3f8de0379)
Diffstat (limited to 'target/linux/mediatek/base-files/etc')
-rwxr-xr-xtarget/linux/mediatek/base-files/etc/uci-defaults/99-net-ps5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/mediatek/base-files/etc/uci-defaults/99-net-ps b/target/linux/mediatek/base-files/etc/uci-defaults/99-net-ps
index 9267340317..bfcd85a307 100755
--- a/target/linux/mediatek/base-files/etc/uci-defaults/99-net-ps
+++ b/target/linux/mediatek/base-files/etc/uci-defaults/99-net-ps
@@ -1,3 +1,4 @@
+uci set network.globals='globals'
uci set network.globals.default_rps_val=14
uci set network.globals.default_rps_flow_cnt=256
uci set network.globals.default_xps_val=14
@@ -12,5 +13,7 @@ uci set network.lan2=device
uci set network.lan2.name=lan2
uci set network.lan3=device
uci set network.lan3.name=lan3
-uci commit
+
+uci commit network
+
exit 0