diff options
Diffstat (limited to 'net/tipc/node.h')
| -rw-r--r-- | net/tipc/node.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/net/tipc/node.h b/net/tipc/node.h index 04e91458bb29..cbe0e950f1cc 100644 --- a/net/tipc/node.h +++ b/net/tipc/node.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * net/tipc/node.h: Include file for TIPC node management routines | 2 | * net/tipc/node.h: Include file for TIPC node management routines |
| 3 | * | 3 | * |
| 4 | * Copyright (c) 2000-2006, Ericsson AB | 4 | * Copyright (c) 2000-2006, 2014, Ericsson AB |
| 5 | * Copyright (c) 2005, 2010-2014, Wind River Systems | 5 | * Copyright (c) 2005, 2010-2014, Wind River Systems |
| 6 | * All rights reserved. | 6 | * All rights reserved. |
| 7 | * | 7 | * |
| @@ -37,7 +37,6 @@ | |||
| 37 | #ifndef _TIPC_NODE_H | 37 | #ifndef _TIPC_NODE_H |
| 38 | #define _TIPC_NODE_H | 38 | #define _TIPC_NODE_H |
| 39 | 39 | ||
| 40 | #include "node_subscr.h" | ||
| 41 | #include "addr.h" | 40 | #include "addr.h" |
| 42 | #include "net.h" | 41 | #include "net.h" |
| 43 | #include "bearer.h" | 42 | #include "bearer.h" |
| @@ -72,9 +71,7 @@ enum { | |||
| 72 | * @last_in: sequence # of last in-sequence b'cast message received from node | 71 | * @last_in: sequence # of last in-sequence b'cast message received from node |
| 73 | * @last_sent: sequence # of last b'cast message sent by node | 72 | * @last_sent: sequence # of last b'cast message sent by node |
| 74 | * @oos_state: state tracker for handling OOS b'cast messages | 73 | * @oos_state: state tracker for handling OOS b'cast messages |
| 75 | * @deferred_size: number of OOS b'cast messages in deferred queue | 74 | * @deferred_queue: deferred queue saved OOS b'cast message received from node |
| 76 | * @deferred_head: oldest OOS b'cast message received from node | ||
| 77 | * @deferred_tail: newest OOS b'cast message received from node | ||
| 78 | * @reasm_buf: broadcast reassembly queue head from node | 75 | * @reasm_buf: broadcast reassembly queue head from node |
| 79 | * @recv_permitted: true if node is allowed to receive b'cast messages | 76 | * @recv_permitted: true if node is allowed to receive b'cast messages |
| 80 | */ | 77 | */ |
| @@ -84,8 +81,7 @@ struct tipc_node_bclink { | |||
| 84 | u32 last_sent; | 81 | u32 last_sent; |
| 85 | u32 oos_state; | 82 | u32 oos_state; |
| 86 | u32 deferred_size; | 83 | u32 deferred_size; |
| 87 | struct sk_buff *deferred_head; | 84 | struct sk_buff_head deferred_queue; |
| 88 | struct sk_buff *deferred_tail; | ||
| 89 | struct sk_buff *reasm_buf; | 85 | struct sk_buff *reasm_buf; |
| 90 | bool recv_permitted; | 86 | bool recv_permitted; |
| 91 | }; | 87 | }; |
| @@ -104,7 +100,7 @@ struct tipc_node_bclink { | |||
| 104 | * @link_cnt: number of links to node | 100 | * @link_cnt: number of links to node |
| 105 | * @signature: node instance identifier | 101 | * @signature: node instance identifier |
| 106 | * @link_id: local and remote bearer ids of changing link, if any | 102 | * @link_id: local and remote bearer ids of changing link, if any |
| 107 | * @nsub: list of "node down" subscriptions monitoring node | 103 | * @publ_list: list of publications |
| 108 | * @rcu: rcu struct for tipc_node | 104 | * @rcu: rcu struct for tipc_node |
| 109 | */ | 105 | */ |
| 110 | struct tipc_node { | 106 | struct tipc_node { |
| @@ -121,7 +117,7 @@ struct tipc_node { | |||
| 121 | int working_links; | 117 | int working_links; |
| 122 | u32 signature; | 118 | u32 signature; |
| 123 | u32 link_id; | 119 | u32 link_id; |
| 124 | struct list_head nsub; | 120 | struct list_head publ_list; |
| 125 | struct sk_buff_head waiting_sks; | 121 | struct sk_buff_head waiting_sks; |
| 126 | struct list_head conn_sks; | 122 | struct list_head conn_sks; |
| 127 | struct rcu_head rcu; | 123 | struct rcu_head rcu; |
| @@ -145,6 +141,8 @@ void tipc_node_unlock(struct tipc_node *node); | |||
| 145 | int tipc_node_add_conn(u32 dnode, u32 port, u32 peer_port); | 141 | int tipc_node_add_conn(u32 dnode, u32 port, u32 peer_port); |
| 146 | void tipc_node_remove_conn(u32 dnode, u32 port); | 142 | void tipc_node_remove_conn(u32 dnode, u32 port); |
| 147 | 143 | ||
| 144 | int tipc_nl_node_dump(struct sk_buff *skb, struct netlink_callback *cb); | ||
| 145 | |||
| 148 | static inline void tipc_node_lock(struct tipc_node *node) | 146 | static inline void tipc_node_lock(struct tipc_node *node) |
| 149 | { | 147 | { |
| 150 | spin_lock_bh(&node->lock); | 148 | spin_lock_bh(&node->lock); |
