nl_bridge: properly handle L2 neighbors moving between ports #415
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.
Properly handle L2 neighbors moving between ports without corrupting the cache.
Description
Due to bad assumptions, the code handling L2 neighbors moving between ports corrupts the local neighbor cache, poentially breaking additional moves or maybe even timouts.
nl_bridge::fdb_timeout()does not check the port of the returned entry from the cache, potentially deleting the wrong neighbor.Fix both issues to allow proper updating of flows when L2 neighbors move between ports.
How Has This Been Tested?
Extending the neighbor moving test to move twice, which then fails.