X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface-event.c;h=4976c2cf032d6b3bc25069f03398aefd454f3d50;hp=d370caec4c9b9d3b821c6f0fab9bc5ac45989abd;hb=b8ef742bd04ebef324ae11aee56c6e1d2cb7e0ad;hpb=c007f08413edc15805c248a8d65f075bb5fb0bdd diff --git a/interface-event.c b/interface-event.c index d370cae..4976c2c 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)) { @@ -192,9 +196,10 @@ static void interface_event_cb(struct interface_user *dep, struct interface *ifa interface_queue_event(iface, ev); break; case IFEV_FREE: - case IFEV_RELOAD: interface_dequeue_event(iface); break; + default: + break; } }