From: Allan Stephens Date: Wed, 16 Apr 2008 02:02:30 +0000 (-0700) Subject: [TIPC]: Use fast buffer cloning to improve performance X-Git-Tag: v2.6.26-rc1~1138^2~72 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bdc82bee43d11c093ff0378acef2a9550891cbb9;p=linux-2.6-omap-h63xx.git [TIPC]: Use fast buffer cloning to improve performance This patch causes TIPC to allocate fast clonable sk_buffs, rather than standard ones. This speeds up the cloning operation done by the link code each time a message is sent off-node. Signed-off-by: Allan Stephens Signed-off-by: David S. Miller --- diff --git a/net/tipc/core.h b/net/tipc/core.h index 3229d29e352..b3c9df385bb 100644 --- a/net/tipc/core.h +++ b/net/tipc/core.h @@ -316,7 +316,7 @@ static inline struct sk_buff *buf_acquire(u32 size) struct sk_buff *skb; unsigned int buf_size = (BUF_HEADROOM + size + 3) & ~3u; - skb = alloc_skb(buf_size, GFP_ATOMIC); + skb = alloc_skb_fclone(buf_size, GFP_ATOMIC); if (skb) { skb_reserve(skb, BUF_HEADROOM); skb_put(skb, size);