[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] low_level_output question
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] low_level_output question |
Date: |
Tue, 07 Apr 2009 08:54:36 +0100 |
On Tue, 2009-04-07 at 09:39 +0200, Fabian Koch wrote:
> I propose we do either of the following:
>
> 1) In the ethernetif-skeleton explicitly document the behavior and
> tell the developer to memcpy the data if their transmission is async.
> 2) See 1), but tell the developer to increment the reference count and
> pbuf_free() themselves (probably faster than memcpy)
Those are fine: more documentation is always good.
> 3) Remove the freeing of the pbuf after handing it over to the driver
> layer and document that and leave it to the driver developer to
> pbuf_free() after the xmit is really done
I don't like that one. It's essentially changing the driver/stack
interface, and there may be reasons why the stack wants to keep the pbuf
around without it being freed.
Kieran
Re: [lwip-users] low_level_output question,
Kieran Mansley <=