Fix cross-bridge VLAN state corruption in bridge port synchronization - #2060
Open
rtrappman-dev wants to merge 7 commits into
Open
rtrappman-dev wants to merge 7 commits into
rtrappman-dev wants to merge 7 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
Contributor
Author
…uption-from-PR-#2055
Contributor
PR Review Summary✅ What looks good
|
This comment has been minimized.
This comment has been minimized.
…uption-from-PR-#2055
This comment has been minimized.
This comment has been minimized.
…uption-from-PR-#2055
This comment has been minimized.
This comment has been minimized.
…uption-from-PR-#2055
This comment has been minimized.
This comment has been minimized.
…uption-from-PR-#2055
Contributor
PR Review Summary✅ What looks good
|
Contributor
PR Review Summary✅ What looks good
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix a cross-bridge VLAN state synchronization bug introduced by FireRouter PR #2055.
bridge monitor linkreports link events globally across the network namespace. The previous implementation processed VLAN events from other bridges without verifying that the VLAN's underlying physical interface belonged to theBridgePortStateSyncinstance handling the event.As a result, an STP state change observed on one bridge could cause VLAN interfaces associated with another bridge to have their port state changed.
Problem
Consider a topology such as:
br0→eth0→eth0.100br1→eth1→eth1.100Each bridge has its own
BridgePortStateSyncinstance, butbridge monitor linkis namespace-wide.When an event for
eth1.100was received by thebr0state-sync instance, the code could:eth1as the physical interface.eth1.eth1.eth1..This allowed one bridge's synchronization logic to operate on VLAN ports belonging to another bridge.
Fix
BridgePortStateSyncnow records the physical interfaces that belong to its associated native bridge when the monitor starts.For VLAN events associated with another bridge, synchronization is performed only when the VLAN's underlying physical interface is a member of the current state-sync instance.
This preserves the intended PR #2055 behavior of correcting VLAN port-state drift while preventing cross-bridge interference.
Testing
Added a regression test covering:
Impact
This prevents unintended modification of VLAN bridge-port state across independent bridges and preserves bridge/VLAN forwarding isolation.
No unrelated networking behavior is changed.