aboutsummaryrefslogtreecommitdiff
path: root/lib/mac-learning.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-04-06 15:31:22 -0700
committerBen Pfaff <blp@nicira.com>2011-04-25 17:11:29 -0700
commit2a4ae6357eb447e185599ec1ca7c95b1e4183c19 (patch)
tree1de08f2031b6d30870ddab1dbc9ee2be179e4fa0 /lib/mac-learning.h
parent0fb7b9156ac7d319a51890630857698ad1877335 (diff)
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.
Diffstat (limited to 'lib/mac-learning.h')
-rw-r--r--lib/mac-learning.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mac-learning.h b/lib/mac-learning.h
index 51a7ac73..d9fa433c 100644
--- a/lib/mac-learning.h
+++ b/lib/mac-learning.h
@@ -96,7 +96,7 @@ void mac_learning_wait(struct mac_learning *);
/* Configuration. */
bool mac_learning_set_flood_vlans(struct mac_learning *,
- unsigned long *bitmap);
+ const unsigned long *bitmap);
/* Learning. */
bool mac_learning_may_learn(const struct mac_learning *,