interface: do not process hotplug events for link up event
authorFelix Fietkau <nbd@nbd.name>
Fri, 29 Jul 2016 17:47:32 +0000 (19:47 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 29 Jul 2016 17:47:32 +0000 (19:47 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
interface-event.c

index d370caec4c9b9d3b821c6f0fab9bc5ac45989abd..93da22bf5557a9d3e0ee3be930b322cec96fa388 100644 (file)
@@ -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)) {