diff options
| author | Paul Mundt <lethal@linux-sh.org> | 2011-01-13 15:06:28 +0900 | 
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-13 15:06:28 +0900 | 
| commit | f43dc23d5ea91fca257be02138a255f02d98e806 (patch) | |
| tree | b29722f6e965316e90ac97abf79923ced250dc21 /net/tipc/node.h | |
| parent | f8e53553f452dcbf67cb89c8cba63a1cd6eb4cc0 (diff) | |
| parent | 4162cf64973df51fc885825bc9ca4d055891c49f (diff) | |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 into common/serial-rework
Conflicts:
	arch/sh/kernel/cpu/sh2/setup-sh7619.c
	arch/sh/kernel/cpu/sh2a/setup-mxg.c
	arch/sh/kernel/cpu/sh2a/setup-sh7201.c
	arch/sh/kernel/cpu/sh2a/setup-sh7203.c
	arch/sh/kernel/cpu/sh2a/setup-sh7206.c
	arch/sh/kernel/cpu/sh3/setup-sh7705.c
	arch/sh/kernel/cpu/sh3/setup-sh770x.c
	arch/sh/kernel/cpu/sh3/setup-sh7710.c
	arch/sh/kernel/cpu/sh3/setup-sh7720.c
	arch/sh/kernel/cpu/sh4/setup-sh4-202.c
	arch/sh/kernel/cpu/sh4/setup-sh7750.c
	arch/sh/kernel/cpu/sh4/setup-sh7760.c
	arch/sh/kernel/cpu/sh4a/setup-sh7343.c
	arch/sh/kernel/cpu/sh4a/setup-sh7366.c
	arch/sh/kernel/cpu/sh4a/setup-sh7722.c
	arch/sh/kernel/cpu/sh4a/setup-sh7723.c
	arch/sh/kernel/cpu/sh4a/setup-sh7724.c
	arch/sh/kernel/cpu/sh4a/setup-sh7763.c
	arch/sh/kernel/cpu/sh4a/setup-sh7770.c
	arch/sh/kernel/cpu/sh4a/setup-sh7780.c
	arch/sh/kernel/cpu/sh4a/setup-sh7785.c
	arch/sh/kernel/cpu/sh4a/setup-sh7786.c
	arch/sh/kernel/cpu/sh4a/setup-shx3.c
	arch/sh/kernel/cpu/sh5/setup-sh5.c
	drivers/serial/sh-sci.c
	drivers/serial/sh-sci.h
	include/linux/serial_sci.h
Diffstat (limited to 'net/tipc/node.h')
| -rw-r--r-- | net/tipc/node.h | 30 | 
1 files changed, 4 insertions, 26 deletions
| diff --git a/net/tipc/node.h b/net/tipc/node.h index 6f990da5d14..206a8efa410 100644 --- a/net/tipc/node.h +++ b/net/tipc/node.h @@ -39,23 +39,21 @@  #include "node_subscr.h"  #include "addr.h" -#include "cluster.h" +#include "net.h"  #include "bearer.h"  /**   * struct tipc_node - TIPC node structure   * @addr: network address of node   * @lock: spinlock governing access to structure - * @owner: pointer to cluster that node belongs to   * @next: pointer to next node in sorted list of cluster's nodes   * @nsub: list of "node down" subscriptions monitoring node   * @active_links: pointers to active links to node   * @links: pointers to all links to node   * @working_links: number of working links to node (both active and standby) + * @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 @@ -71,16 +69,14 @@  struct tipc_node {  	u32 addr;  	spinlock_t lock; -	struct cluster *owner;  	struct tipc_node *next;  	struct list_head nsub;  	struct link *active_links[2];  	struct link *links[MAX_BEARERS];  	int link_cnt;  	int working_links; +	int cleanup_required;  	int permit_changeover; -	u32 routers[512/32]; -	int last_router;  	struct {  		int supported;  		u32 acked; @@ -94,7 +90,6 @@ struct tipc_node {  	} bclink;  }; -extern struct tipc_node *tipc_nodes;  extern u32 tipc_own_tag;  struct tipc_node *tipc_node_create(u32 addr); @@ -105,34 +100,17 @@ 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);  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 tipc_net.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); | 
