summaryrefslogtreecommitdiffstats
path: root/net/tipc/core.c
diff options
context:
space:
mode:
authorHoang Le2019-03-19 12:49:49 +0100
committerDavid S. Miller2019-03-19 21:56:17 +0100
commitff2ebbfba6186adf3964eb816f8f255c6e664dc4 (patch)
tree12310faa497e8e64adf2b9628e24011159820531 /net/tipc/core.c
parenttipc: support broadcast/replicast configurable for bc-link (diff)
downloadkernel-qcow2-linux-ff2ebbfba6186adf3964eb816f8f255c6e664dc4.tar.gz
kernel-qcow2-linux-ff2ebbfba6186adf3964eb816f8f255c6e664dc4.tar.xz
kernel-qcow2-linux-ff2ebbfba6186adf3964eb816f8f255c6e664dc4.zip
tipc: introduce new capability flag for cluster
As a preparation for introducing a smooth switching between replicast and broadcast method for multicast message, We have to introduce a new capability flag TIPC_MCAST_RBCTL to handle this new feature. During a cluster upgrade a node can come back with this new capabilities which also must be reflected in the cluster capabilities field. The new feature is only applicable if all node in the cluster supports this new capability. 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/core.c')
-rw-r--r--net/tipc/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tipc/core.c b/net/tipc/core.c
index 5b38f5164281..27cccd101ef6 100644
--- a/net/tipc/core.c
+++ b/net/tipc/core.c
@@ -43,6 +43,7 @@
#include "net.h"
#include "socket.h"
#include "bcast.h"
+#include "node.h"
#include <linux/module.h>
@@ -59,6 +60,7 @@ static int __net_init tipc_init_net(struct net *net)
tn->node_addr = 0;
tn->trial_addr = 0;
tn->addr_trial_end = 0;
+ tn->capabilities = TIPC_NODE_CAPABILITIES;
memset(tn->node_id, 0, sizeof(tn->node_id));
memset(tn->node_id_string, 0, sizeof(tn->node_id_string));
tn->mon_threshold = TIPC_DEF_MON_THRESHOLD;