View Single Post

  #3 (permalink)  
Old 12-30-2003
Alexander Sirotkin
 
Posts: n/a
Default Re: network driver that uses skb destructor

Somebody on the LKML pointed out that it would not work because
skb->destructor can be overwritten at higher levels and there is
no way to chain destructors....

I gues I'll have to do this a hard way...

Pete Zaitcev wrote:
> On Mon, 29 Dec 2003 18:47:38 +0200, Alexander Sirotkin wrote:
>
>
>>I would like to write a network driver that uses DMA and manages
>>it's own memory.
>>[...]
>>For various reasons (mainly to support legacy source code) I would like
>>to allocate and free the buffer using my own functions. Theoretically,
>>I could get away by using skb->destructor.
>>[...]
>>Anybody tried to implement similar approach ?
>>Any thoughts why this would (or would not) work ?

>
>
> It should work, IMHO. Check how AF_UNIX does it.
>
> I might note that reusing WinCE or such too literally always
> caused crappage in my experience. You might want to ponder
> if it is worth bothering.
>
> -- Pete
>


Reply With Quote