mediatek: remove obsolete base-files scripts
authorFelix Fietkau <nbd@nbd.name>
Thu, 16 Jan 2025 18:32:51 +0000 (19:32 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 17 Jan 2025 08:48:27 +0000 (09:48 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/mediatek/base-files/etc/hotplug.d/iface/99-mtk-lro [deleted file]
target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow [deleted file]

diff --git a/target/linux/mediatek/base-files/etc/hotplug.d/iface/99-mtk-lro b/target/linux/mediatek/base-files/etc/hotplug.d/iface/99-mtk-lro
deleted file mode 100755 (executable)
index 9a2ffae..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-[ ifup = "$ACTION" ] && {
-       [ -n "$DEVICE" ] && {
-               if [ "$INTERFACE" == "lan" ]; then
-                       if [ -f /usr/sbin/ethtool ]; then
-                               ifname=eth0
-                               lan_ip=`uci -q get network.lan.ipaddr`
-                               ethdrv=`ethtool -i $ifname | grep mtk_soc_eth`
-                               [ -n "$ethdrv" ] && {
-                                       ethtool -N $ifname flow-type tcp4 dst-ip $lan_ip loc 0
-                               }
-                       fi
-               fi
-       }
-}
diff --git a/target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow b/target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow
deleted file mode 100644 (file)
index 49b1dd1..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-set_rps_sock_flow() {
-       echo 1024 > /proc/sys/net/core/rps_sock_flow_entries
-}
-
-boot_hook_add preinit_main set_rps_sock_flow
-