aboutsummaryrefslogtreecommitdiffstats
path: root/src/framework
diff options
context:
space:
mode:
authoryalei wang <wylandrea@gmail.com>2019-04-03 12:01:09 +0000
committerGerrit Code Review <gerrit@fd.io>2019-04-03 12:01:09 +0000
commit1a18eec5affd1804d0648eaaeb3ce9fb1757a85e (patch)
tree19257cfcc939c43a354e3ffc388fb8d22b8028bc /src/framework
parentdb9dffb1beafa94b9341c9638887b1c6c8768377 (diff)
parentab0c198b32bebf85f88a241de8fab08f5653f90e (diff)
Merge "Fix: LWIP performance enhancement [iperf tool]"
Diffstat (limited to 'src/framework')
-rw-r--r--src/framework/log/nstack_log.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/framework/log/nstack_log.c b/src/framework/log/nstack_log.c
index 6678996..483a10a 100644
--- a/src/framework/log/nstack_log.c
+++ b/src/framework/log/nstack_log.c
@@ -305,6 +305,10 @@ int nstack_log_init()
{
log_level = NSLOG_EMG;
}
+ else if (strcmp (pst_temp, "PERF") == 0)
+ {
+ ctrl_log_switch = 1;
+ }
else
{
log_level = NSLOG_ERR;
@@ -657,6 +661,10 @@ nstack_log_init_app ()
{
log_level = NSLOG_EMG;
}
+ else if (strcmp (pc_temp, "PERF") == 0)
+ {
+ ctrl_log_switch = 1;
+ }
else
{
log_level = NSLOG_ERR;