lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Role of tcpip_thread when LWIP_TCPIP_CORE_LOCKING is en


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,

in your configuration, tcpip_thread only does little work but is still required. It handles timers, delayed writes etc. You won't notice missing it right away, but you'll still need it eventually.

Regards,
Simon


Am 24. Dezember 2024 02:13:03 MEZ schrieb kyle shim <kyle.s.shim@gmail.com>:

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                             1

The application structure is similar to the below diagram except for "Ethernet ISR". "Network Interface Task" waits for network frames from pcap library.

lwip-operation-model-with-RTOS-from-ST.png

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]