aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/link.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/link.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/link.c')
-rw-r--r--net/tipc/link.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index cf414cf05e72..671ffd3c0e53 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -1061,7 +1061,7 @@ int tipc_link_send(struct sk_buff *buf, u32 dest, u32 selector)
1061 int res = -ELINKCONG; 1061 int res = -ELINKCONG;
1062 1062
1063 read_lock_bh(&tipc_net_lock); 1063 read_lock_bh(&tipc_net_lock);
1064 n_ptr = tipc_node_select(dest, selector); 1064 n_ptr = tipc_node_find(dest);
1065 if (n_ptr) { 1065 if (n_ptr) {
1066 tipc_node_lock(n_ptr); 1066 tipc_node_lock(n_ptr);
1067 l_ptr = n_ptr->active_links[selector & 1]; 1067 l_ptr = n_ptr->active_links[selector & 1];
@@ -1137,7 +1137,7 @@ int tipc_send_buf_fast(struct sk_buff *buf, u32 destnode)
1137 return tipc_port_recv_msg(buf); 1137 return tipc_port_recv_msg(buf);
1138 1138
1139 read_lock_bh(&tipc_net_lock); 1139 read_lock_bh(&tipc_net_lock);
1140 n_ptr = tipc_node_select(destnode, selector); 1140 n_ptr = tipc_node_find(destnode);
1141 if (likely(n_ptr)) { 1141 if (likely(n_ptr)) {
1142 tipc_node_lock(n_ptr); 1142 tipc_node_lock(n_ptr);
1143 l_ptr = n_ptr->active_links[selector]; 1143 l_ptr = n_ptr->active_links[selector];
@@ -1186,7 +1186,7 @@ again:
1186 !sender->user_port, &buf); 1186 !sender->user_port, &buf);
1187 1187
1188 read_lock_bh(&tipc_net_lock); 1188 read_lock_bh(&tipc_net_lock);
1189 node = tipc_node_select(destaddr, selector); 1189 node = tipc_node_find(destaddr);
1190 if (likely(node)) { 1190 if (likely(node)) {
1191 tipc_node_lock(node); 1191 tipc_node_lock(node);
1192 l_ptr = node->active_links[selector]; 1192 l_ptr = node->active_links[selector];
@@ -1376,7 +1376,7 @@ error:
1376 * Now we have a buffer chain. Select a link and check 1376 * Now we have a buffer chain. Select a link and check
1377 * that packet size is still OK 1377 * that packet size is still OK
1378 */ 1378 */
1379 node = tipc_node_select(destaddr, sender->publ.ref & 1); 1379 node = tipc_node_find(destaddr);
1380 if (likely(node)) { 1380 if (likely(node)) {
1381 tipc_node_lock(node); 1381 tipc_node_lock(node);
1382 l_ptr = node->active_links[sender->publ.ref & 1]; 1382 l_ptr = node->active_links[sender->publ.ref & 1];
@@ -1893,7 +1893,7 @@ deliver:
1893 continue; 1893 continue;
1894 case ROUTE_DISTRIBUTOR: 1894 case ROUTE_DISTRIBUTOR:
1895 tipc_node_unlock(n_ptr); 1895 tipc_node_unlock(n_ptr);
1896 tipc_cltr_recv_routing_table(buf); 1896 buf_discard(buf);
1897 continue; 1897 continue;
1898 case NAME_DISTRIBUTOR: 1898 case NAME_DISTRIBUTOR:
1899 tipc_node_unlock(n_ptr); 1899 tipc_node_unlock(n_ptr);
@@ -2852,7 +2852,6 @@ void tipc_link_set_queue_limits(struct link *l_ptr, u32 window)
2852 l_ptr->queue_limit[TIPC_HIGH_IMPORTANCE + 4] = 900; 2852 l_ptr->queue_limit[TIPC_HIGH_IMPORTANCE + 4] = 900;
2853 l_ptr->queue_limit[TIPC_CRITICAL_IMPORTANCE + 4] = 1200; 2853 l_ptr->queue_limit[TIPC_CRITICAL_IMPORTANCE + 4] = 1200;
2854 l_ptr->queue_limit[CONN_MANAGER] = 1200; 2854 l_ptr->queue_limit[CONN_MANAGER] = 1200;
2855 l_ptr->queue_limit[ROUTE_DISTRIBUTOR] = 1200;
2856 l_ptr->queue_limit[CHANGEOVER_PROTOCOL] = 2500; 2855 l_ptr->queue_limit[CHANGEOVER_PROTOCOL] = 2500;
2857 l_ptr->queue_limit[NAME_DISTRIBUTOR] = 3000; 2856 l_ptr->queue_limit[NAME_DISTRIBUTOR] = 3000;
2858 /* FRAGMENT and LAST_FRAGMENT packets */ 2857 /* FRAGMENT and LAST_FRAGMENT packets */
@@ -3154,7 +3153,7 @@ u32 tipc_link_get_max_pkt(u32 dest, u32 selector)
3154 return MAX_MSG_SIZE; 3153 return MAX_MSG_SIZE;
3155 3154
3156 read_lock_bh(&tipc_net_lock); 3155 read_lock_bh(&tipc_net_lock);
3157 n_ptr = tipc_node_select(dest, selector); 3156 n_ptr = tipc_node_find(dest);
3158 if (n_ptr) { 3157 if (n_ptr) {
3159 tipc_node_lock(n_ptr); 3158 tipc_node_lock(n_ptr);
3160 l_ptr = n_ptr->active_links[selector & 1]; 3159 l_ptr = n_ptr->active_links[selector & 1];