lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Problem with CS8900 driver


From: Bernhard 'Gustl' Bauer
Subject: [lwip-users] Problem with CS8900 driver
Date: Wed, 13 Jan 2010 16:09:24 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Hi,

I'm using LWIP 1.3.0 with the modified CS8900 driver coming with contrib.

The transfer from CS8900 to RAM buffer is done by DMA and works fine so far. Then cs8900_input() does a pbuf_alloc() and copies 1 packet from DMA buffer to pbuf.

But what if pbuf_alloc() fails? If I drop this packet I might get problems with HTTP handshake. If I try again next time cs8900_service() is called I will run into the same problem. Neither cs8900_input() nor cs8900if_input() does anything without pbuf. There must be a pbuf_free before a pbuf_alloc is successful.

How do I do this the right way?

TIA

Gustl





reply via email to

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