Re: [Linux-ATM-General] Re: network driver that uses skb destructor

From: contractor
Date: Tue Dec 30 2003 - 10:06:05 EST


i wouldnt think skb chaining is absolutely necessary. if your driver/layer
needs a copy of the data within the skb, it should call skb_clone. this
lets your layer do whatever it needs with the skb headers et al while not
making copies of the data right?

In message <200312301048.06261.baldrick@xxxxxxx>,Duncan Sands writes:
>> I wrote a patch to allow chaining of skb destructors, which was fairly
>> simple and would allow both the driver and the upper layers to set
>> their destructors. If there's any interet, I could probably resurrect
>> it.
>
>It may also be useful for the ATM layer. At the moment there is a
>vcc->pop routine that frees skb's, it should really be a destructor.
>Check out this email:
> http://www.atm.tut.fi/list-archive/linux-atm/msg05485.html
>However AFAICS destructors would need to be chained.
>
>Duncan.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/