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>
Tue, 5 Dec 2023 11:59:05 +0000 (12:59 +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 c931923e3299eed57a58300951d6b36ae94fe1f0..f4007437eeb53acb57fff1f0a208cb4f0374d484 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);
 }