lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Receive path stuck due to pbuf_alloc returning NULL


From: ercang
Subject: Re: [lwip-users] Receive path stuck due to pbuf_alloc returning NULL
Date: Thu, 21 Mar 2019 05:03:10 -0700 (MST)

Hi all, I have a similar problem. I am using FreeRTOS 9.0.0 and lwIP 2.1.0
contrib FreeRTOS port. I use a notification in ISR and send ethernet packets
to message box in ethernet input thread. Then I process those packets in
tcpip_thread(). 

I can successfully receive and send SNMP packets at 1.3 Mbps. Above this
speed, response rate to SNMP requests gradually decrease as I increase
incoming packets. After 13 Mbps, there is no answer at all. 

The problem is, even if I stop sending SNMP requests to device, I cannot
ping the device anymore. The program does not get into EMAC RX ISR. However,
it continues to execute other threads. 

I investigated the problem, and I observed that the problem happens when I
use pbuf_alloc(PBUF_POOL). If I prevent the program to get into pbuf_alloc
during the storm, and reenable pbuf_alloc after storm, I can ping the
device. 

Any help will be appreciated. 

Regards 
Ercan



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html



reply via email to

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