]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: introduce capability bit for broadcast synchronization
authorJon Paul Maloy <jon.maloy@ericsson.com>
Thu, 22 Oct 2015 12:51:40 +0000 (08:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Oct 2015 13:56:35 +0000 (06:56 -0700)
commit83dad727b346dcdbeb04d9ca918b5f1e6af21ae2
treeabca98757b551a23d08dd80ca3b72a1d3ac7a564
parentbdb50d9f8e2c33374f8aaeefad7e6f260d735ede
tipc: introduce capability bit for broadcast synchronization

Until now, we have tried to support both the newer, dedicated broadcast
synchronization mechanism along with the older, less safe, RESET_MSG/
ACTIVATE_MSG based one. The latter method has turned out to be a hazard
in a highly dynamic cluster, so we find it safer to disable it completely
when we find that the former mechanism is supported by the peer node.

For this purpose, we now introduce a new capabability bit,
TIPC_BCAST_SYNCH, to inform any peer nodes that dedicated broadcast
syncronization is supported by the present node. The new bit is conveyed
between peers in the 'capabilities' field of neighbor discovery messages.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bcast.c
net/tipc/discover.c
net/tipc/link.c
net/tipc/link.h
net/tipc/node.c
net/tipc/node.h