bridge: Remove slaves from the bond before closing their netdevs.
authorBen Pfaff <blp@nicira.com>
Thu, 21 Apr 2011 23:37:38 +0000 (16:37 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 21 Apr 2011 23:37:38 +0000 (16:37 -0700)
commita01fbfafd4fc9add1947853ad15570e14ea6f43b
tree4e18d6bf089e610efdc441fc644fbb7afbb566e2
parenta6934aa95f96f946a07b87143f72ab1fb4db854f
bridge: Remove slaves from the bond before closing their netdevs.

A bond slave has a pointer to its iface's netdev, so we don't want it to
keep that pointer after the bridge closes the netdev.

This is becoming a bit of a mess so perhaps we need reference counting for
netdevs (although Jesse didn't like the idea when I proposed it before).
vswitchd/bridge.c