lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] crash on a lot of outgoing packets


From: Leon Woestenberg
Subject: Re: [lwip-users] crash on a lot of outgoing packets
Date: Wed, 14 Dec 2005 23:03:53 +0100
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Hello Kyle,

kyle treleaven wrote:

Hi all,

I'm using the RAW api, in a Xilinx port of lwip to their ppc405 in
virtex4 FPGA.  I mimicked the following process for sending out data
from a basic echo server example (there seems to be a real scarcity of
raw api examples out there).  The whole thing works ok, but if I start
trying to send packets faster than they can actually go out, I go into
an infinite loop of bad pbuf_alloc's.
Two things here:

1) Infinite? Not good. Your Ethernet outgoing queue should eventually free the pbufs that were put on the wire and memory
should be available again.

2) Somewhere you should make a blocking call that waits for your Ethernet queue to become non-full again, as lwIP does not know about this. Typically, you would wait for an interrupt from the MAC if you work async, or just block until room
is available in the MAC before you submit the packet to it.

Regards,

Leon.




reply via email to

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