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>
This commit is contained in:
committed by
David S. Miller
parent
08c80e9a03
commit
51a8e4dee7
@@ -54,8 +54,6 @@
|
||||
* @cleanup_required: non-zero if cleaning up after a prior loss of contact
|
||||
* @link_cnt: number of links to node
|
||||
* @permit_changeover: non-zero if node has redundant links to this system
|
||||
* @routers: bitmap (used for multicluster communication)
|
||||
* @last_router: (used for multicluster communication)
|
||||
* @bclink: broadcast-related info
|
||||
* @supported: non-zero if node supports TIPC b'cast capability
|
||||
* @acked: sequence # of last outbound b'cast message acknowledged by node
|
||||
@@ -80,8 +78,6 @@ struct tipc_node {
|
||||
int working_links;
|
||||
int cleanup_required;
|
||||
int permit_changeover;
|
||||
u32 routers[512/32];
|
||||
int last_router;
|
||||
struct {
|
||||
int supported;
|
||||
u32 acked;
|
||||
@@ -105,11 +101,7 @@ void tipc_node_link_down(struct tipc_node *n_ptr, struct link *l_ptr);
|
||||
void tipc_node_link_up(struct tipc_node *n_ptr, struct link *l_ptr);
|
||||
int tipc_node_has_active_links(struct tipc_node *n_ptr);
|
||||
int tipc_node_has_redundant_links(struct tipc_node *n_ptr);
|
||||
u32 tipc_node_select_router(struct tipc_node *n_ptr, u32 ref);
|
||||
struct tipc_node *tipc_node_select_next_hop(u32 addr, u32 selector);
|
||||
int tipc_node_is_up(struct tipc_node *n_ptr);
|
||||
void tipc_node_add_router(struct tipc_node *n_ptr, u32 router);
|
||||
void tipc_node_remove_router(struct tipc_node *n_ptr, u32 router);
|
||||
struct sk_buff *tipc_node_get_links(const void *req_tlv_area, int req_tlv_space);
|
||||
struct sk_buff *tipc_node_get_nodes(const void *req_tlv_area, int req_tlv_space);
|
||||
|
||||
@@ -117,22 +109,9 @@ static inline struct tipc_node *tipc_node_find(u32 addr)
|
||||
{
|
||||
if (likely(in_own_cluster(addr)))
|
||||
return tipc_local_nodes[tipc_node(addr)];
|
||||
else if (tipc_addr_domain_valid(addr)) {
|
||||
struct cluster *c_ptr = tipc_cltr_find(addr);
|
||||
|
||||
if (c_ptr)
|
||||
return c_ptr->nodes[tipc_node(addr)];
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline struct tipc_node *tipc_node_select(u32 addr, u32 selector)
|
||||
{
|
||||
if (likely(in_own_cluster(addr)))
|
||||
return tipc_local_nodes[tipc_node(addr)];
|
||||
return tipc_node_select_next_hop(addr, selector);
|
||||
}
|
||||
|
||||
static inline void tipc_node_lock(struct tipc_node *n_ptr)
|
||||
{
|
||||
spin_lock_bh(&n_ptr->lock);
|
||||
|
Reference in New Issue
Block a user