summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-06-17 10:39:26 +0200
committerFelix Fietkau <nbd@nbd.name>2021-06-17 10:39:28 +0200
commitb0d0906883021baca9ef6e80ba0480ac3e2a4b7a (patch)
treefffc8f111c2f1c6eb2c54265b8b044569b961df2 /device.c
parentf12b073c0cc3b1ee8d652a342505ae0b14856c18 (diff)
downloadnetifd-b0d0906883021baca9ef6e80ba0480ac3e2a4b7a.tar.gz
bridge: fix setting pvid for updated vlans
defer adding back changed vlans until config processing is done Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'device.c')
-rw-r--r--device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/device.c b/device.c
index 26254cc..9bad507 100644
--- a/device.c
+++ b/device.c
@@ -129,6 +129,9 @@ void device_vlan_update(bool done)
vlist_update(&dev->vlans);
} else {
vlist_flush(&dev->vlans);
+
+ if (dev->type->vlan_update)
+ dev->type->vlan_update(dev);
}
}
}