bridge: Change all_bridges from list to hmap (indexed by name).
authorBen Pfaff <blp@nicira.com>
Mon, 4 Apr 2011 21:11:16 +0000 (14:11 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 4 May 2011 17:15:32 +0000 (10:15 -0700)
commit764072fd84f6e657899a34f8670357aee0d59879
tree57879823f989e7a57f9994fd1f6a8ca8d2bd2cdb
parentb5827b24c7c136b088e719bfe2020de31032ae37
bridge: Change all_bridges from list to hmap (indexed by name).

This is more convenient for looking up a bridge by name.  That makes
reconfiguration a little bit simpler, because there is no longer a need to
build a temporary index of existing bridges.  I don't see any downsides.
vswitchd/bridge.c