Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Walk on deleted route table when VRF is deleted.
Problem: When VRF is marked for delete, route tables are deleted from agent however the pointer is not made NULL(for debugging it is retained). This happens via Onzerorefcount, where vrf entry(db entry) delete is enqueued later. There can be a walk going on Vrftable and since this Vrf is not yet deleted and is in queue, it can be picked up. Once this happens further route table walks in this vrf will be started. Since route table were deleted these pointer(table) will be invalid resulting in crash. Solution: On route table walk identify if table is deleted and walk need not be done. To fix use bitmap and reset it once table is deleted. Change-Id: I3ca5e6eb0eb4fb54ec873242b57a4389448c5279 Closes-bug: 1471101
- Loading branch information
1 parent
e6e07d4
commit 436914e
Showing
6 changed files
with
79 additions
and
54 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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