aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/link.c
diff options
context:
space:
mode:
authorHoang Le <hoang.h.le@dektech.com.au>2019-11-21 10:01:09 +0700
committerDavid S. Miller <davem@davemloft.net>2019-11-22 09:29:50 -0800
commitba5f6a8617f4cd8e77da0a190b9647065014eade (patch)
tree67d0b9889befad89618f6e4aa0beca045992332c /net/tipc/link.c
parentenetc: make enetc_setup_tc_mqprio static (diff)
downloadlinux-dev-ba5f6a8617f4cd8e77da0a190b9647065014eade.tar.xz
linux-dev-ba5f6a8617f4cd8e77da0a190b9647065014eade.zip
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>
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r--net/tipc/link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index fb72031228c9..24d4d10756d3 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -550,7 +550,7 @@ bool tipc_link_bc_create(struct net *net, u32 ownnode, u32 peer,
/* Disable replicast if even a single peer doesn't support it */
if (link_is_bc_rcvlink(l) && !(peer_caps & TIPC_BCAST_RCAST))
- tipc_bcast_disable_rcast(net);
+ tipc_bcast_toggle_rcast(net, false);
return true;
}