Re: [PATCH] skb destructor enhancement idea

From: David S. Miller (davem@redhat.com)
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.

Later,
David S. Miller
davem@redhat.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



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