diff options
author | qctecmdr <qctecmdr@localhost> | 2019-11-25 06:20:09 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-11-25 06:20:09 -0800 |
commit | 892e07957bf97be6afcedb560886999e007727b3 (patch) | |
tree | e91b13ad9b6298d6f2fd6ed0bf7b9a057d62602b | |
parent | 7fa0fbc4c4b5344b5c4b9ca7851502f475573fed (diff) | |
parent | 283640605de483f948c8eecf159192b7b73036d3 (diff) | |
download | data-kernel-892e07957bf97be6afcedb560886999e007727b3.tar.gz |
Merge "emac: Perf setting"
-rw-r--r-- | drivers/emac-dwc-eqos/Android.mk | 9 | ||||
-rw-r--r-- | drivers/emac-dwc-eqos/emac_perf_settings.sh | 22 |
2 files changed, 31 insertions, 0 deletions
diff --git a/drivers/emac-dwc-eqos/Android.mk b/drivers/emac-dwc-eqos/Android.mk index a50d64f..cff761a 100644 --- a/drivers/emac-dwc-eqos/Android.mk +++ b/drivers/emac-dwc-eqos/Android.mk @@ -22,6 +22,15 @@ KBUILD_OPTIONS += DCONFIG_DEBUGFS_OBJ=1 LOCAL_MODULE := emac_dwc_eqos.ko LOCAL_MODULE_TAGS := optional include $(DLKM_DIR)/AndroidKernelModule.mk + +include $(CLEAR_VARS) +LOCAL_MODULE := emac_perf_settings.sh +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/emac +LOCAL_SRC_FILES := emac_perf_settings.sh +include $(BUILD_PREBUILT) + endif endif diff --git a/drivers/emac-dwc-eqos/emac_perf_settings.sh b/drivers/emac-dwc-eqos/emac_perf_settings.sh new file mode 100644 index 0000000..508e69d --- /dev/null +++ b/drivers/emac-dwc-eqos/emac_perf_settings.sh @@ -0,0 +1,22 @@ +#!/vendor/bin/sh +#Copyright (c) 2019, The Linux Foundation. All rights reserved. +# +#This program is free software; you can redistribute it and/or modify +#it under the terms of the GNU General Public License version 2 and +#only version 2 as published by the Free Software Foundation. +# +#This program is distributed in the hope that it will be useful, +#but WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +#GNU General Public License for more details. +# +# +echo 12582912 > /proc/sys/net/core/wmem_max; +echo 12582912 > /proc/sys/net/core/rmem_max; +echo 10240 87380 12582912 > /proc/sys/net/ipv4/tcp_rmem; +echo 10240 87380 12582912 > /proc/sys/net/ipv4/tcp_wmem; +echo 12582912 > /proc/sys/net/ipv4/udp_rmem_min; +echo 12582912 > /proc/sys/net/ipv4/udp_wmem_min; +echo 1 > /proc/sys/net/ipv4/tcp_window_scaling; +echo 18 > /sys/class/net/eth0/queues/rx-0/rps_cpus; + |