Signed-off-by: Felix Fietkau <nbd@nbd.name>
+++ /dev/null
-[ 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
- }
-}
+++ /dev/null
-set_rps_sock_flow() {
- echo 1024 > /proc/sys/net/core/rps_sock_flow_entries
-}
-
-boot_hook_add preinit_main set_rps_sock_flow
-