summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryalei wang <wylandrea@gmail.com>2018-10-31 08:14:04 +0000
committerGerrit Code Review <gerrit@fd.io>2018-10-31 08:14:04 +0000
commit999e5ea8b4073eb6849e1903936c77f4daec8a0b (patch)
tree787075431a4056d32128c0859c41784a21851907
parentdbc4c0c8284eddb91e5294ba00e0b43c8faab930 (diff)
parentd350c9ce98342afec8cb540296c2f3454952339a (diff)
Merge "Fix: set default core num '1' for lwip backend thread"
-rw-r--r--stacks/lwip_stack/lwip_src/api/spl_tcpip.c4
-rwxr-xr-xstacks/lwip_stack/release/script/nstack_var.sh4
2 files changed, 5 insertions, 3 deletions
diff --git a/stacks/lwip_stack/lwip_src/api/spl_tcpip.c b/stacks/lwip_stack/lwip_src/api/spl_tcpip.c
index d8c7533..b0b588a 100644
--- a/stacks/lwip_stack/lwip_src/api/spl_tcpip.c
+++ b/stacks/lwip_stack/lwip_src/api/spl_tcpip.c
@@ -951,7 +951,7 @@ spl_tcpip_thread (void *arg)
u16 task_loop;
u16 num_recv_task = 0, num_send_timer_task = 0;
u16 index_task = 0;
- int tcpip_thread_sleep_interval = g_tcpip_thread_sleep_time * 1000;
+ //int tcpip_thread_sleep_interval = g_tcpip_thread_sleep_time * 1000;
void *task_queue[TASK_BURST];
data_com_msg *msg;
@@ -981,7 +981,7 @@ spl_tcpip_thread (void *arg)
if (run_count++ > 20)
{
- sys_sleep_ns (0, tcpip_thread_sleep_interval);
+ //sys_sleep_ns (0, tcpip_thread_sleep_interval);
}
continue;
}
diff --git a/stacks/lwip_stack/release/script/nstack_var.sh b/stacks/lwip_stack/release/script/nstack_var.sh
index 9a1c612..a654d34 100755
--- a/stacks/lwip_stack/release/script/nstack_var.sh
+++ b/stacks/lwip_stack/release/script/nstack_var.sh
@@ -50,8 +50,10 @@ DPDK_NIC_LIST_FILE=$RUNTIME_DIR/.nstack_dpdk_nic_list
MAX_LOG_FILE_SIZE=52428800
HUGE_PAGES=2048
HUGE_DIR=/mnt/nstackhuge
+
SLEEP_INTERVAL=100 # tcpip thread sleep time, unit: us
-BIND_CPU=0
+BIND_CPU=1
+
MEM_SIZE=3072
RTP_CORE_MASK=2