summaryrefslogtreecommitdiff
path: root/target/linux/mediatek/base-files/lib
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/mediatek/base-files/lib')
-rw-r--r--target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow8
-rwxr-xr-xtarget/linux/mediatek/base-files/lib/upgrade/platform.sh1
2 files changed, 9 insertions, 0 deletions
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
new file mode 100644
index 0000000..9a84ff4
--- /dev/null
+++ b/target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set_rps_sock_flow() {
+ echo 1024 > /proc/sys/net/core/rps_sock_flow_entries
+}
+
+boot_hook_add preinit_main set_rps_sock_flow
+
diff --git a/target/linux/mediatek/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/base-files/lib/upgrade/platform.sh
index 7e936c4..7161a4b 100755
--- a/target/linux/mediatek/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/base-files/lib/upgrade/platform.sh
@@ -25,6 +25,7 @@ platform_check_image() {
nand_do_platform_check $board $1
return $?
;;
+ bananapi,bpi-r2 |\
mediatek,mt7623-rfb-emmc)
local kernel_length=`(tar xf $tar_file sysupgrade-$board/kernel -O | wc -c) 2> /dev/null`
local rootfs_length=`(tar xf $tar_file sysupgrade-$board/root -O | wc -c) 2> /dev/null`