bridge: fix reload on bridge vlan changes
authorFelix Fietkau <nbd@nbd.name>
Tue, 5 Dec 2023 10:52:44 +0000 (11:52 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 4 Jan 2024 12:35:39 +0000 (13:35 +0100)
config_pending needs to be set even if the bridge is inactive, in order to
handle changes to the member list

Signed-off-by: Felix Fietkau <nbd@nbd.name>
bridge.c

index dd4d2c1c896e989faf90f759a9a71d6cdad84b12..d224150b974c72e3982238c734cd0957334e37d7 100644 (file)
--- a/bridge.c
+++ b/bridge.c
@@ -1391,9 +1391,8 @@ bridge_vlan_update(struct vlist_tree *tree, struct vlist_node *node_new,
        if (node_new)
                vlan_new->pending = true;
 
-       bst->dev.config_pending = true;
-
 out:
+       bst->dev.config_pending = true;
        bridge_vlan_free(vlan_old);
 }