Skip to content

libnet/d/bridge: init driver.nlh in newDriver#49267

Merged
akerouanton merged 1 commit intomoby:masterfrom
akerouanton:newDriver-init-nlh
Jan 13, 2025
Merged

libnet/d/bridge: init driver.nlh in newDriver#49267
akerouanton merged 1 commit intomoby:masterfrom
akerouanton:newDriver-init-nlh

Conversation

@akerouanton
Copy link
Copy Markdown
Member

@akerouanton akerouanton commented Jan 13, 2025

Related to:

- What I did

This field was initialized by driver.createNetwork instead of being initialized by the newDriver constructor. That's currently the single place where it's initialized -- no tests override it, so it seems the 'current' netns is always used.

- How to verify it

Existing tests.

This field was initialized by `driver.createNetwork` instead of being
initialized by the `newDriver` constructor. That's currently the single
place where it's initialized -- no tests override it, so it seems the
'current' netns is always used.

Signed-off-by: Albin Kerouanton <[email protected]>
@akerouanton akerouanton added status/2-code-review area/networking Networking kind/refactor PR's that refactor, or clean-up code area/networking/d/bridge Networking labels Jan 13, 2025
@akerouanton akerouanton added this to the 28.0.0 milestone Jan 13, 2025
@akerouanton akerouanton self-assigned this Jan 13, 2025
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/networking/d/bridge Networking area/networking Networking kind/refactor PR's that refactor, or clean-up code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants