summaryrefslogtreecommitdiff
path: root/nest/iface.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-01-31 13:11:55 +0100
committerMaria Matejka <mq@ucw.cz>2023-02-02 14:40:00 +0100
commite077d0e770f00c98f26ee6b3cdb7905bf9bea4c1 (patch)
tree0d8c8254d591588c0b255a422bacafebe78f8d1a /nest/iface.c
parent05d8c3699d51866c68747167556e7c1f06390afe (diff)
Moved interface list flush to device protocol cleanup hook.
The interface list must be flushed when device protocol is stopped. This was done in a hardcoded specific hook inside generic protocol routines. The cleanup hook was originally used for table reference counting late cleanup, yet it can be also simply used for prettier interface list flush.
Diffstat (limited to 'nest/iface.c')
-rw-r--r--nest/iface.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/nest/iface.c b/nest/iface.c
index fc896e26..fc63dc75 100644
--- a/nest/iface.c
+++ b/nest/iface.c
@@ -386,15 +386,6 @@ if_end_update(void)
}
}
-void
-if_flush_ifaces(struct proto *p)
-{
- if (p->debug & D_EVENTS)
- log(L_TRACE "%s: Flushing interfaces", p->name);
- if_start_update();
- if_end_update();
-}
-
/**
* if_feed_baby - advertise interfaces to a new protocol
* @p: protocol to feed