From: David S. Miller Date: Wed, 17 Aug 2005 21:57:30 +0000 (-0700) Subject: [NET]: Implement SKB fast cloning. X-Git-Tag: v2.6.14-rc1~1035^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d179cd12928443f3ec29cfbc3567439644bd0afc;p=pandora-kernel.git [NET]: Implement SKB fast cloning. Protocols that make extensive use of SKB cloning, for example TCP, eat at least 2 allocations per packet sent as a result. To cut the kmalloc() count in half, we implement a pre-allocation scheme wherein we allocate 2 sk_buff objects in advance, then use a simple reference count to free up the memory at the correct time. Based upon an initial patch by Thomas Graf and suggestions from Herbert Xu. Signed-off-by: David S. Miller --- Reading git-diff-tree failed