Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zebra: fix route deletion during zebra shutdown (backport #15424) #15569

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Mar 18, 2024

Restore the order of execution in zebra's main thread:
vrf_terminate();
zebra_dplane_finish();
zebra_dplane_shutdown();
changed in commit 3b0e170.

vrf_terminate() enqueues routes for deletion in dplane thread.
zebra_dplane_shutdown() effectively forces dplane thread
to immediately cease and join (leaving unprocessed routes), while
zebra_dplane_finish() has a condition that prevents
zebra_dplane_shutdown() from running until all routes queued for dplane thread have been deleted.

Closes #14062
Closes #14178


This is an automatic backport of pull request #15424 done by Mergify.

Split zebra's vrf_terminate() into disable() and delete() stages.
The former enqueues all events for the dplane thread.
Memory freeing is performed in the second stage.

Signed-off-by: Alexander Skorichenko <[email protected]>
(cherry picked from commit 444ce31)
@mjstapp
Copy link
Contributor

mjstapp commented Mar 18, 2024

rerunning the one CI failed suite

@mjstapp mjstapp merged commit 2437d09 into dev/10.0 Mar 18, 2024
14 checks passed
@mergify mergify bot deleted the mergify/bp/dev/10.0/pr-15424 branch March 18, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants