Skip to content

Conversation

@FelixMcFelix
Copy link
Collaborator

One of the purposes of DevMap is to ensure that the datapath does not inappropriately clone out and extend the lifetime of any ports. As it turns out, the code using DevMap is doing the right thing, but its API surface is overly permissive and should be making an Arc::clone or similar impossible.

One of the purposes of `DevMap` is to ensure that the datapath does not
inappropriately clone out and extend the lifetime of any ports. As it
turns out, the code using `DevMap` is doing the right thing, but its API
surface is overly permissive and should be making an `Arc::clone` or
similar impossible.
Copy link

@zeeshanlakhani zeeshanlakhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know the review for #847 is incoming, but, as discussed, we don't want to allow for the Arc::clone of DevMaps in that work, so it would be beneficial to have this in first.

@FelixMcFelix FelixMcFelix merged commit 1c9d8fd into master Nov 13, 2025
10 checks passed
@FelixMcFelix FelixMcFelix deleted the devmap-access-ctl branch November 13, 2025 18:11
@FelixMcFelix FelixMcFelix mentioned this pull request Nov 13, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants