aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/monitor.c')
-rw-r--r--net/tipc/monitor.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/tipc/monitor.c b/net/tipc/monitor.c
index 67f69389ec17..23706ee16607 100644
--- a/net/tipc/monitor.c
+++ b/net/tipc/monitor.c
@@ -665,6 +665,21 @@ void tipc_mon_delete(struct net *net, int bearer_id)
665 kfree(mon); 665 kfree(mon);
666} 666}
667 667
668void tipc_mon_reinit_self(struct net *net)
669{
670 struct tipc_monitor *mon;
671 int bearer_id;
672
673 for (bearer_id = 0; bearer_id < MAX_BEARERS; bearer_id++) {
674 mon = tipc_monitor(net, bearer_id);
675 if (!mon)
676 continue;
677 write_lock_bh(&mon->lock);
678 mon->self->addr = tipc_own_addr(net);
679 write_unlock_bh(&mon->lock);
680 }
681}
682
668int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size) 683int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size)
669{ 684{
670 struct tipc_net *tn = tipc_net(net); 685 struct tipc_net *tn = tipc_net(net);