aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/net.h
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2011-02-25 10:01:58 -0500
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-03-13 16:35:17 -0400
commitd1bcb11544109114d72965afea7805cc3e16a83a (patch)
treeb530d264ec04c6ac8d61d2b9f44cf2ef07a66d86 /net/tipc/net.h
parent9df3b7eb6ec1c7734482f782bf8335a2737c02f0 (diff)
tipc: Split up unified structure of network-related variables
Converts the fields of the global "tipc_net" structure into individual variables. Since the struct was never referenced as a complete unit, its existence was pointless. This will facilitate upcoming changes to TIPC's node table and simpify upcoming relocation of the variables so they are only visible to the files that actually use them. This change is essentially cosmetic in nature, and doesn't affect the operation of TIPC. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/net.h')
-rw-r--r--net/tipc/net.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/net/tipc/net.h b/net/tipc/net.h
index aa431ef8b7bf..b52b9748b5e2 100644
--- a/net/tipc/net.h
+++ b/net/tipc/net.h
@@ -39,21 +39,10 @@
39 39
40struct tipc_node; 40struct tipc_node;
41 41
42/** 42extern struct tipc_node **tipc_nodes;
43 * struct network - TIPC network structure 43extern u32 tipc_highest_node;
44 * @nodes: array of pointers to all nodes within cluster 44extern atomic_t tipc_num_links;
45 * @highest_node: id of highest numbered node within cluster
46 * @links: number of (unicast) links to cluster
47 */
48
49struct network {
50 struct tipc_node **nodes;
51 u32 highest_node;
52 atomic_t links;
53};
54
55 45
56extern struct network tipc_net;
57extern rwlock_t tipc_net_lock; 46extern rwlock_t tipc_net_lock;
58 47
59void tipc_net_route_msg(struct sk_buff *buf); 48void tipc_net_route_msg(struct sk_buff *buf);