mac-learning: Change mac_learning_set_flood_vlans() to not take ownership.
authorBen Pfaff <blp@nicira.com>
Wed, 6 Apr 2011 22:31:22 +0000 (15:31 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 26 Apr 2011 00:11:29 +0000 (17:11 -0700)
commit2a4ae6357eb447e185599ec1ca7c95b1e4183c19
tree1de08f2031b6d30870ddab1dbc9ee2be179e4fa0
parent0fb7b9156ac7d319a51890630857698ad1877335
mac-learning: Change mac_learning_set_flood_vlans() to not take ownership.

These new semantics are less efficient in the case where the flood_vlans
actually changed, but that should be very rare.

There are no advantages to this change on its own, but upcoming commits
will add multiple layers between the code supplying the flood_vlans and
actually calling mac_learning_set_flood_vlans().  Consistency in this
multilayered interface seems valuable, and the rest of it does not transfer
ownership from the caller to the callee.
lib/bitmap.h
lib/mac-learning.c
lib/mac-learning.h
lib/vlan-bitmap.h
vswitchd/bridge.c