Commit 3622c36f authored by Erik Hugne's avatar Erik Hugne Committed by David S. Miller
Browse files

tipc: only create header copy for name distr messages

The TIPC name distributor pushes topology updates to the cluster
neighbors. Currently this is done in a unicast manner, and the
skb holding the update is cloned for each cluster member. This
is unnecessary, as we only modify the destnode field in the header
so we change it to do pskb_copy instead.

Signed-off-by: default avatarErik Hugne <>
Reviewed-by: default avatarJon Maloy <>
Signed-off-by: default avatarDavid S. Miller <>
parent 247f6d0f
......@@ -98,7 +98,7 @@ void named_cluster_distribute(struct net *net, struct sk_buff *skb)
if (!tipc_node_active_links(node))
oskb = skb_copy(skb, GFP_ATOMIC);
oskb = pskb_copy(skb, GFP_ATOMIC);
if (!oskb)
msg_set_destnode(buf_msg(oskb), dnode);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment