bridge: fix MAC address override on config reload
authorFelix Fietkau <nbd@nbd.name>
Tue, 22 Nov 2016 09:43:25 +0000 (10:43 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 22 Nov 2016 09:43:26 +0000 (10:43 +0100)
commit96c53518ffdd470768a224fbdb697294639a8370
tree794e813083ad25d7f8ef6c9047fd49f27acac875
parentd51ce171c7588b3dbcfdfccfa8d2c5d5c9733e81
bridge: fix MAC address override on config reload

When no MAC address option is given, the MAC address of
bst->primary_port is used to override the bridge device address.
When the config changes and a new MAC address is provided in the config,
bridge_reset_primary needs to stop overriding it

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