bridge: fix changing the vlan local flag at runtime
authorFelix Fietkau <[email protected]>
Thu, 14 Aug 2025 16:57:22 +0000 (18:57 +0200)
committerFelix Fietkau <[email protected]>
Thu, 14 Aug 2025 16:57:22 +0000 (18:57 +0200)
Signed-off-by: Felix Fietkau <[email protected]>
bridge.c

index 3555ddef41a1b016959ccb37e85403b9d9433d36..809060dea539ac1569b68871fd663c2415407621 100644 (file)
--- a/bridge.c
+++ b/bridge.c
@@ -1342,7 +1342,7 @@ bridge_vlan_equal(struct bridge_vlan *v1, struct bridge_vlan *v2)
 {
        int i;
 
-       if (v1->n_ports != v2->n_ports)
+       if (v1->n_ports != v2->n_ports || v1->local != v2->local)
                return false;
 
        for (i = 0; i < v1->n_ports; i++)