interface-event: Don't dequeue hotplug event in case of interface reload event
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 13 Sep 2016 12:33:40 +0000 (14:33 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 14 Sep 2016 12:50:43 +0000 (14:50 +0200)
commitfe6ad84c7120a1000c9dcd3cabdc6249b36414a6
tree60ee529ed1775be1ae92a72952fc681f72c3648c
parent7f6be657e2dabc185417520de4d0d0de2580c27d
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>
interface-event.c