bridge: fix hotplug vlan overwrite on big-endian systems
authorFelix Fietkau <nbd@nbd.name>
Tue, 13 Jul 2021 05:53:40 +0000 (07:53 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 13 Jul 2021 05:53:44 +0000 (07:53 +0200)
commit1f283c654aeb1f8983e0a81b7a81cc4784fffe3f
treebba9fd7421ccefbff17841647c2c2c47a5f411ed
parent4e92ea74273f7d569f2be67066f9ebd33cf2ecad
bridge: fix hotplug vlan overwrite on big-endian systems

The avl key type for bridge vlans is uint16_t, so any lookup with a wider
type is going to fail on big-endian systems
This resulted in hotplug-added devices replacing configured member ports

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