aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/bcast.c
diff options
context:
space:
mode:
authorAllan Stephens <Allan.Stephens@windriver.com>2010-12-31 13:59:19 -0500
committerDavid S. Miller <davem@davemloft.net>2011-01-01 16:57:49 -0500
commit8f92df6ad49da958d97e171762d0a97a3dc738f1 (patch)
treead848109f978d225b42ea219d7f45f10aa008a2c /net/tipc/bcast.c
parent51a8e4dee7653698ba4c6e7de71053665f075273 (diff)
tipc: Remove prototype code for supporting multiple clusters
Eliminates routines, data structures, and files that were intended to allow TIPC to support a network containing multiple clusters. Currently, TIPC supports only networks consisting of a single cluster within a single zone, so this code is unnecessary. Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/bcast.c')
-rw-r--r--net/tipc/bcast.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c
index 6d828d9eda42..110829eab96a 100644
--- a/net/tipc/bcast.c
+++ b/net/tipc/bcast.c
@@ -111,6 +111,9 @@ static struct bclink *bclink = NULL;
111static struct link *bcl = NULL; 111static struct link *bcl = NULL;
112static DEFINE_SPINLOCK(bc_lock); 112static DEFINE_SPINLOCK(bc_lock);
113 113
114/* broadcast-capable node map */
115struct tipc_node_map tipc_bcast_nmap;
116
114const char tipc_bclink_name[] = "broadcast-link"; 117const char tipc_bclink_name[] = "broadcast-link";
115 118
116static void tipc_nmap_diff(struct tipc_node_map *nm_a, 119static void tipc_nmap_diff(struct tipc_node_map *nm_a,
@@ -566,8 +569,8 @@ static int tipc_bcbearer_send(struct sk_buff *buf,
566 if (likely(!msg_non_seq(buf_msg(buf)))) { 569 if (likely(!msg_non_seq(buf_msg(buf)))) {
567 struct tipc_msg *msg; 570 struct tipc_msg *msg;
568 571
569 assert(tipc_cltr_bcast_nodes.count != 0); 572 assert(tipc_bcast_nmap.count != 0);
570 bcbuf_set_acks(buf, tipc_cltr_bcast_nodes.count); 573 bcbuf_set_acks(buf, tipc_bcast_nmap.count);
571 msg = buf_msg(buf); 574 msg = buf_msg(buf);
572 msg_set_non_seq(msg, 1); 575 msg_set_non_seq(msg, 1);
573 msg_set_mc_netid(msg, tipc_net_id); 576 msg_set_mc_netid(msg, tipc_net_id);
@@ -576,7 +579,7 @@ static int tipc_bcbearer_send(struct sk_buff *buf,
576 579
577 /* Send buffer over bearers until all targets reached */ 580 /* Send buffer over bearers until all targets reached */
578 581
579 bcbearer->remains = tipc_cltr_bcast_nodes; 582 bcbearer->remains = tipc_bcast_nmap;
580 583
581 for (bp_index = 0; bp_index < MAX_BEARERS; bp_index++) { 584 for (bp_index = 0; bp_index < MAX_BEARERS; bp_index++) {
582 struct bearer *p = bcbearer->bpairs[bp_index].primary; 585 struct bearer *p = bcbearer->bpairs[bp_index].primary;