Network Stack SKB Reallocation

Jonathan Haws Jonathan.Haws at
Tue Oct 27 06:16:00 EST 2009

So, in my case, I allocate a bunch of skb's that I want to be able to reuse during network operation (256 in fact).  When I pass it up the stack, the stack will free that skb back to the system making any further use of it invalid until I call alloc_skb() again?


> On Monday 26 October 2009 19:43:00 Jonathan Haws wrote:
> > Quick question about the network stack in general:
> >
> > Does the stack itself release an SKB allocated by the device
> driver back to the heap upstream, or does it require that the device
> driver handle that?
> There's the concept of passing responsibilities for the frames
> between
> the networking layers. So the driver passes the frame and all
> responsibilities
> to the networking stack. So if the networking stack accepts the
> packet in the first place,
> it needs to free it (or pass it to somebody else to take care of).
> --
> Greetings, Michael.

More information about the Linuxppc-dev mailing list