summaryrefslogtreecommitdiffhomepage
path: root/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'device.c')
-rw-r--r--device.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/device.c b/device.c
index 70cb6a7..5e3a741 100644
--- a/device.c
+++ b/device.c
@@ -109,6 +109,21 @@ void device_unlock(void)
device_free_unused(NULL);
}
+void device_vlan_update(bool done)
+{
+ struct device *dev;
+
+ avl_for_each_element(&devices, dev, avl) {
+ if (!dev->vlans.update)
+ continue;
+
+ if (!done)
+ vlist_update(&dev->vlans);
+ else
+ vlist_flush(&dev->vlans);
+ }
+}
+
static int set_device_state(struct device *dev, bool state)
{
if (state) {