[lkml]   [2001]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] skb destructor enhancement idea

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

 \ /
  Last update: 2005-03-22 12:55    [W:0.059 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site