Page MenuHomeFreeBSD

bridge: Remove members when assigned to a new vnet
ClosedPublic

Authored by kp on Feb 22 2021, 2:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 2:22 AM
Unknown Object (File)
Mon, Apr 22, 2:21 AM
Unknown Object (File)
Mon, Apr 22, 2:21 AM
Unknown Object (File)
Sat, Apr 20, 8:34 AM
Unknown Object (File)
Feb 21 2024, 5:04 PM
Unknown Object (File)
Feb 20 2024, 10:06 AM
Unknown Object (File)
Jan 29 2024, 3:57 AM
Unknown Object (File)
Jan 27 2024, 3:01 PM

Details

Summary

When the bridge is moved to a different vnet we must remove all of its
member interfaces (and span interfaces), because we don't know if those
will be moved along with it. We don't want to hold references to
interfaces not in our vnet.

MFC after: 1 week
Sponsored by: Orange Business Services

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Feb 22 2021, 2:32 PM
donner added inline comments.
sys/net/if_ethersubr.c
977–979

Remove this too?

1034–1051

dito

sys/net/if_ethersubr.c
977–979

No, because there are other callers (pretty much every ethernet NIC driver) to ether_ifattach() that we don't want to modify.

sys/net/if_ethersubr.c
120–122

Why is the prototype removed?

sys/net/if_ethersubr.c
120–122

It moved to sys/net/ethernet.h so that the function can be used by if_bridge.

In essence what we're doing is adding steps in front of the ether_reassign() code for if_bridge.

This revision is now accepted and ready to land.Feb 22 2021, 7:20 PM