From d350c9ce98342afec8cb540296c2f3454952339a Mon Sep 17 00:00:00 2001 From: Yalei Wang Date: Mon, 22 Oct 2018 11:25:43 +0800 Subject: Fix: set default core num '1' for lwip backend thread Don't use the core 0 and stop sleep in lwip backend thread Change-Id: Ib0ca129e5d00523f6f4b64681a2d0b5429b3e3c0 Signed-off-by: Yalei Wang --- stacks/lwip_stack/lwip_src/api/spl_tcpip.c | 4 ++-- stacks/lwip_stack/release/script/nstack_var.sh | 4 +++- 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 b627bcf..c1bd141 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 100644 --- 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 -- cgit 1.2.3-korg