diff options
Diffstat (limited to 'net/tipc')
| -rw-r--r-- | net/tipc/node.c | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index be90115cda1a..3b86a74cb31f 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c @@ -144,9 +144,11 @@ void tipc_node_stop(void)  void tipc_node_link_up(struct tipc_node *n_ptr, struct tipc_link *l_ptr)  {  	struct tipc_link **active = &n_ptr->active_links[0]; +	u32 addr = n_ptr->addr;  	n_ptr->working_links++; - +	tipc_nametbl_publish(TIPC_LINK_STATE, addr, addr, TIPC_NODE_SCOPE, +			     l_ptr->bearer_id, addr);  	pr_info("Established link <%s> on network plane %c\n",  		l_ptr->name, l_ptr->net_plane); @@ -203,8 +205,10 @@ static void node_select_active_links(struct tipc_node *n_ptr)  void tipc_node_link_down(struct tipc_node *n_ptr, struct tipc_link *l_ptr)  {  	struct tipc_link **active; +	u32 addr = n_ptr->addr;  	n_ptr->working_links--; +	tipc_nametbl_withdraw(TIPC_LINK_STATE, addr, l_ptr->bearer_id, addr);  	if (!tipc_link_is_active(l_ptr)) {  		pr_info("Lost standby link <%s> on network plane %c\n",  | 
