]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: only create header copy for name distr messages
authorErik Hugne <erik.hugne@ericsson.com>
Fri, 27 Feb 2015 07:56:54 +0000 (08:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2015 23:18:47 +0000 (18:18 -0500)
commita8b2f621a873eb2aded050e41c2e2abe2569ce14
tree18d030826acf2e7ff7ed57268c67b2a3fcd6b5a7
parent9fedf58b9311f61b56da3fb911e49b8509ba17fb
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: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_distr.c