aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2008-04-15 22:02:30 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-15 22:02:30 -0400
commitbdc82bee43d11c093ff0378acef2a9550891cbb9 (patch)
tree79339fc5d583b06892e583e309409a75b9b0e279 /net/tipc
parent11ecede7874efb9c31184b49090fc6d9bb17f9f6 (diff)
[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 <allan.stephens@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/core.h b/net/tipc/core.h
index 3229d29e352a..b3c9df385bbc 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -316,7 +316,7 @@ static inline struct sk_buff *buf_acquire(u32 size)
316 struct sk_buff *skb; 316 struct sk_buff *skb;
317 unsigned int buf_size = (BUF_HEADROOM + size + 3) & ~3u; 317 unsigned int buf_size = (BUF_HEADROOM + size + 3) & ~3u;
318 318
319 skb = alloc_skb(buf_size, GFP_ATOMIC); 319 skb = alloc_skb_fclone(buf_size, GFP_ATOMIC);
320 if (skb) { 320 if (skb) {
321 skb_reserve(skb, BUF_HEADROOM); 321 skb_reserve(skb, BUF_HEADROOM);
322 skb_put(skb, size); 322 skb_put(skb, size);