projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c007f08
)
interface: do not process hotplug events for link up event
author
Felix Fietkau
<nbd@nbd.name>
Fri, 29 Jul 2016 17:47:32 +0000
(19:47 +0200)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/interface-event.c
b/interface-event.c
index d370caec4c9b9d3b821c6f0fab9bc5ac45989abd..93da22bf5557a9d3e0ee3be930b322cec96fa388 100644
(file)
--- 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)) {