aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/net.c
diff options
context:
space:
mode:
authorAllan Stephens <Allan.Stephens@windriver.com>2010-12-31 13:59:18 -0500
committerDavid S. Miller <davem@davemloft.net>2011-01-01 16:57:48 -0500
commit51a8e4dee7653698ba4c6e7de71053665f075273 (patch)
tree94d90bd650f0dd8ab542cc5c948d6ddf6501a107 /net/tipc/net.c
parent08c80e9a031df0a8f0269477a32f5eae47d7a146 (diff)
tipc: Remove prototype code for supporting inter-cluster routing
Eliminates routines and data structures that were intended to allow TIPC to route messages to other 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/net.c')
-rw-r--r--net/tipc/net.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c
index a25f8bb1e1d9..3967f1f6d97f 100644
--- a/net/tipc/net.c
+++ b/net/tipc/net.c
@@ -112,48 +112,6 @@
112DEFINE_RWLOCK(tipc_net_lock); 112DEFINE_RWLOCK(tipc_net_lock);
113struct network tipc_net; 113struct network tipc_net;
114 114
115struct tipc_node *tipc_net_select_remote_node(u32 addr, u32 ref)
116{
117 struct cluster *c_ptr;
118
119 c_ptr = tipc_net.clusters[1];
120 if (!c_ptr)
121 return NULL;
122 return tipc_cltr_select_node(c_ptr, ref);
123}
124
125u32 tipc_net_select_router(u32 addr, u32 ref)
126{
127 struct cluster *c_ptr;
128
129 c_ptr = tipc_net.clusters[1];
130 if (!c_ptr)
131 return 0;
132 return tipc_cltr_select_router(c_ptr, ref);
133}
134
135void tipc_net_remove_as_router(u32 router)
136{
137 u32 c_num;
138
139 for (c_num = 1; c_num <= tipc_max_clusters; c_num++) {
140 if (!tipc_net.clusters[c_num])
141 continue;
142 tipc_cltr_remove_as_router(tipc_net.clusters[c_num], router);
143 }
144}
145
146void tipc_net_send_external_routes(u32 dest)
147{
148 u32 c_num;
149
150 for (c_num = 1; c_num <= tipc_max_clusters; c_num++) {
151 if (tipc_net.clusters[c_num])
152 tipc_cltr_send_ext_routes(tipc_net.clusters[c_num],
153 dest);
154 }
155}
156
157static void net_stop(void) 115static void net_stop(void)
158{ 116{
159 u32 c_num; 117 u32 c_num;
@@ -225,9 +183,6 @@ void tipc_net_route_msg(struct sk_buff *buf)
225 return; 183 return;
226 } 184 }
227 switch (msg_user(msg)) { 185 switch (msg_user(msg)) {
228 case ROUTE_DISTRIBUTOR:
229 tipc_cltr_recv_routing_table(buf);
230 break;
231 case NAME_DISTRIBUTOR: 186 case NAME_DISTRIBUTOR:
232 tipc_named_recv(buf); 187 tipc_named_recv(buf);
233 break; 188 break;