OSDN Git Service

tipc: update replicast capability for broadcast send link
authorHoang Le <hoang.h.le@dektech.com.au>
Thu, 21 Nov 2019 03:01:09 +0000 (10:01 +0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Nov 2019 17:29:50 +0000 (09:29 -0800)
commitba5f6a8617f4cd8e77da0a190b9647065014eade
tree67d0b9889befad89618f6e4aa0beca045992332c
parent13baf667fa8e23aed12516776de6e50f7617820a
tipc: update replicast capability for broadcast send link

When setting up a cluster with non-replicast/replicast capability
supported. This capability will be disabled for broadcast send link
in order to be backwards compatible.

However, when these non-support nodes left and be removed out the cluster.
We don't update this capability on broadcast send link. Then, some of
features that based on this capability will also disabling as unexpected.

In this commit, we make sure the broadcast send link capabilities will
be re-calculated as soon as a node removed/rejoined a cluster.

Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bcast.c
net/tipc/bcast.h
net/tipc/link.c
net/tipc/node.c