summaryrefslogtreecommitdiffhomepage
path: root/interface-event.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-07-29 19:47:32 +0200
committerFelix Fietkau <nbd@nbd.name>2016-07-29 19:47:32 +0200
commit656c387974879105c2aaec6b62478d0195067f2d (patch)
tree128c70726813368c7f8e387e1f2cd68c99aa70c3 /interface-event.c
parentc007f08413edc15805c248a8d65f075bb5fb0bdd (diff)
interface: do not process hotplug events for link up event
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'interface-event.c')
-rw-r--r--interface-event.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/interface-event.c b/interface-event.c
index d370cae..93da22b 100644
--- a/interface-event.c
+++ b/interface-event.c
@@ -124,6 +124,10 @@ interface_queue_event(struct interface *iface, enum interface_event ev)
netifd_ubus_interface_notify(iface, ev != IFEV_DOWN);
+ /* no hotplug.d calls for link up */
+ if (ev == IFEV_LINK_UP)
+ return;
+
if (current == iface) {
/* an event for iface is being processed */
if (!list_empty(&iface->hotplug_list)) {