Skip to content
Commit d179cd12 authored by David S. Miller's avatar David S. Miller Committed by David S. Miller
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent e92ae93a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment