Skip to content

Acknowledge network teardowns - #149

Merged
GyulyVGC merged 2 commits into
mainfrom
ack-teardown
Aug 7, 2026
Merged

Acknowledge network teardowns#149
GyulyVGC merged 2 commits into
mainfrom
ack-teardown

Conversation

@GyulyVGC

@GyulyVGC GyulyVGC commented Aug 7, 2026

Copy link
Copy Markdown
Member

Teardowns are now ack'd: VlanTeardown/VxlanTeardown carry an optional msg_id, the
client acks once the teardown has actually run, and the id returns to the pool
only then. The free is deferred to a detached task rather than awaited — callers
tear chains down in a loop — and still happens after a 30 s grace, emitting
net_teardown_unconfirmed, since a disconnected endpoint is normal on this path.

Additionally, both pools reused the lowest freed id, handing one straight back out. They now
reuse oldest-freed-first, with a membership index so a double free cannot queue
an id twice.

Fixes #146

@GyulyVGC GyulyVGC self-assigned this Aug 7, 2026
@GyulyVGC GyulyVGC added the enhancement New feature or request label Aug 7, 2026
@GyulyVGC
GyulyVGC merged commit 4c6c7fb into main Aug 7, 2026
7 of 8 checks passed
@GyulyVGC
GyulyVGC deleted the ack-teardown branch August 7, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Net ids are reused before their teardown has run, so a late teardown can delete a live edge

1 participant