diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2016-09-13 14:33:40 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-09-14 14:50:43 +0200 |
commit | fe6ad84c7120a1000c9dcd3cabdc6249b36414a6 (patch) | |
tree | 60ee529ed1775be1ae92a72952fc681f72c3648c /interface-event.c | |
parent | 7f6be657e2dabc185417520de4d0d0de2580c27d (diff) |
interface-event: Don't dequeue hotplug event in case of interface reload event
Dropping hotplug event in case of interface reload results into hotplug scripts
not being being run for the interface and thus external actors not being informed
about the actual state of the interface.
This is clearly visible if the interface auto parameter is set to disabled for
multiple interfaces resulting into no hotplug down event for all interfaces.
Therefore don't flush the interface hotplug queue in case an interface reload
event is observed.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface-event.c')
-rw-r--r-- | interface-event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/interface-event.c b/interface-event.c index 93da22b..4976c2c 100644 --- a/interface-event.c +++ b/interface-event.c @@ -196,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; } } |