|
From: | Simon Goldschmidt |
Subject: | Re: [lwip-users] Role of tcpip_thread when LWIP_TCPIP_CORE_LOCKING is enabled |
Date: | Tue, 24 Dec 2024 22:50:26 +0100 |
User-agent: | K-9 Mail for Android |
Hi guys,
I'm experimenting with lwip in linux environment with pcap library. I added socket API applications to my program. I wonder what role tcpip_thread does in my environment.
I configured the following three options as below and lwip is initialized with tcpip_init().
#define NO_SYS 0
#define LWIP_TCPIP_CORE_LOCKING 1
#define LWIP_SOCKET 1The application structure is similar to the below diagram except for "Ethernet ISR". "Network Interface Task" waits for network frames from pcap library.
Application is using socket APIs and it's communicating with lwip via mbox defined for linux environment. But I found that "Network Interface Task" process TCP level jobs and it interacts with socket application. mbox(static sys_mbox_t tcpip_mbox) in tcpip_thread is not used at all. Even when I commented out the line where tcpip_thread is created, lwip with socket applications works fine.
// sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO);
Am I missing something? What is the role of tcpip thread in this environment?
Thanks guys.
Kyle
[Prev in Thread] | Current Thread | [Next in Thread] |