mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
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>
This commit is contained in:
parent
2f56612457
commit
fd556f209a
6 changed files with 23 additions and 7 deletions
|
@ -584,8 +584,10 @@ void tipc_node_check_dest(struct net *net, u32 onode,
|
|||
if (!tipc_link_create(n, if_name, b->identity, b->tolerance,
|
||||
b->net_plane, b->mtu, b->priority,
|
||||
b->window, mod(tipc_net(net)->random),
|
||||
tipc_own_addr(net), onode, &le->maddr,
|
||||
&le->inputq, &n->bclink.namedq, &l)) {
|
||||
tipc_own_addr(net), onode,
|
||||
n->capabilities,
|
||||
&le->maddr, &le->inputq,
|
||||
&n->bclink.namedq, &l)) {
|
||||
*respond = false;
|
||||
goto exit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue