Skip to content

Commit

Permalink
[TIPC]: Use fast buffer cloning to improve performance
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Stephens authored and David S. Miller committed Apr 16, 2008
1 parent 11ecede commit bdc82be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tipc/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bdc82be

Please sign in to comment.