diff options
Diffstat (limited to 'net/tipc/link.h')
-rw-r--r-- | net/tipc/link.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/tipc/link.h b/net/tipc/link.h index 9b5198e90fdf..eb1d7f9d5522 100644 --- a/net/tipc/link.h +++ b/net/tipc/link.h | |||
@@ -111,7 +111,7 @@ struct tipc_stats { | |||
111 | * @name: link name character string | 111 | * @name: link name character string |
112 | * @media_addr: media address to use when sending messages over link | 112 | * @media_addr: media address to use when sending messages over link |
113 | * @timer: link timer | 113 | * @timer: link timer |
114 | * @owner: pointer to peer node | 114 | * @net: pointer to namespace struct |
115 | * @refcnt: reference counter for permanent references (owner node & timer) | 115 | * @refcnt: reference counter for permanent references (owner node & timer) |
116 | * @peer_session: link session # being used by peer end of link | 116 | * @peer_session: link session # being used by peer end of link |
117 | * @peer_bearer_id: bearer id used by link's peer endpoint | 117 | * @peer_bearer_id: bearer id used by link's peer endpoint |
@@ -154,7 +154,7 @@ struct tipc_link { | |||
154 | u32 addr; | 154 | u32 addr; |
155 | char name[TIPC_MAX_LINK_NAME]; | 155 | char name[TIPC_MAX_LINK_NAME]; |
156 | struct tipc_media_addr *media_addr; | 156 | struct tipc_media_addr *media_addr; |
157 | struct tipc_node *owner; | 157 | struct net *net; |
158 | 158 | ||
159 | /* Management and link supervision data */ | 159 | /* Management and link supervision data */ |
160 | u32 peer_session; | 160 | u32 peer_session; |
@@ -165,6 +165,7 @@ struct tipc_link { | |||
165 | u32 abort_limit; | 165 | u32 abort_limit; |
166 | u32 state; | 166 | u32 state; |
167 | u16 peer_caps; | 167 | u16 peer_caps; |
168 | bool active; | ||
168 | u32 silent_intv_cnt; | 169 | u32 silent_intv_cnt; |
169 | struct { | 170 | struct { |
170 | unchar hdr[INT_H_SIZE]; | 171 | unchar hdr[INT_H_SIZE]; |
@@ -219,7 +220,7 @@ struct tipc_link { | |||
219 | struct tipc_stats stats; | 220 | struct tipc_stats stats; |
220 | }; | 221 | }; |
221 | 222 | ||
222 | bool tipc_link_create(struct tipc_node *n, char *if_name, int bearer_id, | 223 | bool tipc_link_create(struct net *net, char *if_name, int bearer_id, |
223 | int tolerance, char net_plane, u32 mtu, int priority, | 224 | int tolerance, char net_plane, u32 mtu, int priority, |
224 | int window, u32 session, u32 ownnode, u32 peer, | 225 | int window, u32 session, u32 ownnode, u32 peer, |
225 | u16 peer_caps, | 226 | u16 peer_caps, |
@@ -229,7 +230,7 @@ bool tipc_link_create(struct tipc_node *n, char *if_name, int bearer_id, | |||
229 | struct sk_buff_head *inputq, | 230 | struct sk_buff_head *inputq, |
230 | struct sk_buff_head *namedq, | 231 | struct sk_buff_head *namedq, |
231 | struct tipc_link **link); | 232 | struct tipc_link **link); |
232 | bool tipc_link_bc_create(struct tipc_node *n, u32 ownnode, u32 peer, | 233 | bool tipc_link_bc_create(struct net *net, u32 ownnode, u32 peer, |
233 | int mtu, int window, u16 peer_caps, | 234 | int mtu, int window, u16 peer_caps, |
234 | struct sk_buff_head *inputq, | 235 | struct sk_buff_head *inputq, |
235 | struct sk_buff_head *namedq, | 236 | struct sk_buff_head *namedq, |
@@ -247,7 +248,7 @@ bool tipc_link_is_establishing(struct tipc_link *l); | |||
247 | bool tipc_link_is_synching(struct tipc_link *l); | 248 | bool tipc_link_is_synching(struct tipc_link *l); |
248 | bool tipc_link_is_failingover(struct tipc_link *l); | 249 | bool tipc_link_is_failingover(struct tipc_link *l); |
249 | bool tipc_link_is_blocked(struct tipc_link *l); | 250 | bool tipc_link_is_blocked(struct tipc_link *l); |
250 | int tipc_link_is_active(struct tipc_link *l_ptr); | 251 | void tipc_link_set_active(struct tipc_link *l, bool active); |
251 | void tipc_link_purge_queues(struct tipc_link *l_ptr); | 252 | void tipc_link_purge_queues(struct tipc_link *l_ptr); |
252 | void tipc_link_purge_backlog(struct tipc_link *l); | 253 | void tipc_link_purge_backlog(struct tipc_link *l); |
253 | void tipc_link_reset(struct tipc_link *l_ptr); | 254 | void tipc_link_reset(struct tipc_link *l_ptr); |