ramips: enable packet steering by default on mt7621
authorFelix Fietkau <nbd@nbd.name>
Sun, 7 Jun 2020 19:19:49 +0000 (21:19 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 10 Jun 2020 14:17:12 +0000 (16:17 +0200)
It provides a significant performance boost, especially with flow offloading
enabled

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ramips/mt7621/base-files/etc/uci-defaults/01_enable_packet_steering [new file with mode: 0644]

diff --git a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/01_enable_packet_steering b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/01_enable_packet_steering
new file mode 100644 (file)
index 0000000..4883fd6
--- /dev/null
@@ -0,0 +1,4 @@
+uci -q get network.globals.packet_steering > /dev/null || {
+       uci set network.globals.packet_steering=1
+       uci commit
+}