Re: [PATCH] skb destructor enhancement idea

From: David S. Miller (
Date: Mon Jun 25 2001 - 17:34:13 EST

Will writes:
> We are currently using this change in a low-level packet monitoring module so we can
> allocate our own packet memory and get called back when the skb is done moving
> through the stack. It seems like it should be useful to allow network drivers to
> implement their own device-specific memory management and thus reduce mem copying
> overhead, too.
> Any driver people want to try it out and see if they can make their driver use it to
> reduce copying?
> Any comments on the idea in general?

I think the idea totally stinks.

It puts a new shared cache line (the spinlock) into the hot path of
SKB allocation and freeing on SMP.

Add an ifdef and the knobs you need to the skb struct directly just
like netfilter does.

David S. Miller

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jun 30 2001 - 21:00:13 EST