aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r--net/tipc/link.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index 17fbd15fcad8..3ff34e8a37d7 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -461,6 +461,18 @@ void tipc_link_reset(struct tipc_link *l_ptr)
461 link_reset_statistics(l_ptr); 461 link_reset_statistics(l_ptr);
462} 462}
463 463
464void tipc_link_reset_list(struct tipc_bearer *b_ptr)
465{
466 struct tipc_link *l_ptr;
467
468 list_for_each_entry(l_ptr, &b_ptr->links, link_list) {
469 struct tipc_node *n_ptr = l_ptr->owner;
470
471 spin_lock_bh(&n_ptr->lock);
472 tipc_link_reset(l_ptr);
473 spin_unlock_bh(&n_ptr->lock);
474 }
475}
464 476
465static void link_activate(struct tipc_link *l_ptr) 477static void link_activate(struct tipc_link *l_ptr)
466{ 478{