aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYalei Wang <william.wangyalei@huawei.com>2018-10-22 11:25:43 +0800
committerYalei Wang <william.wangyalei@huawei.com>2018-10-24 09:33:04 +0800
commitd350c9ce98342afec8cb540296c2f3454952339a (patch)
tree81415e4e43d424b9cc0f80a5814c8ad929eab3c3
parente29af930882238ad7837b2ab48c0be3103e4c575 (diff)
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 <william.wangyalei@huawei.com>
-rw-r--r--stacks/lwip_stack/lwip_src/api/spl_tcpip.c4
-rw-r--r--stacks/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 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