[openwrt/openwrt] mediatek: remove obsolete base-files scripts

LEDE Commits lede-commits at lists.infradead.org
Fri Jan 17 00:49:24 PST 2025


nbd pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/e6cae783a4a8336e919c305e97e47ed1a58b43ca

commit e6cae783a4a8336e919c305e97e47ed1a58b43ca
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Jan 16 19:32:51 2025 +0100

    mediatek: remove obsolete base-files scripts
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
    (cherry picked from commit 48e1427ffa867bddc822a463af862b9dacc5bde8)
---
 .../mediatek/base-files/etc/hotplug.d/iface/99-mtk-lro     | 14 --------------
 .../mediatek/base-files/lib/preinit/06_set_rps_sock_flow   |  6 ------
 2 files changed, 20 deletions(-)

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
index 9a2ffaeed8..0000000000
--- a/target/linux/mediatek/base-files/etc/hotplug.d/iface/99-mtk-lro
+++ /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
index 49b1dd1ca6..0000000000
--- a/target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow
+++ /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
-




More information about the lede-commits mailing list