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)
Tue, Nov 5, 5:37 PM
Unknown Object (File)
Tue, Nov 5, 5:37 PM
Unknown Object (File)
Tue, Nov 5, 5:37 PM
Unknown Object (File)
Sun, Nov 3, 12:57 PM
Unknown Object (File)
Sat, Nov 2, 9:21 PM
Unknown Object (File)
Mon, Oct 21, 6:43 PM
Unknown Object (File)
Sep 28 2024, 12:19 AM
Unknown Object (File)
Sep 27 2024, 9:29 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