diff options
author | Ethan Jackson <ethan@nicira.com> | 2013-06-12 13:58:16 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2013-06-12 15:29:00 -0700 |
commit | ae1736c07c60d1638d428b192378183e2d90ada2 (patch) | |
tree | 16df27a3ada4cdec3d94a344cb178156e81a4e33 /lib/mac-learning.h | |
parent | 8961699e0310fd2b77035dc7bff63eb9538daf67 (diff) |
mac-learning: Simplify mac_learning_changed().
With this patch, the mac_learning module takes responsibility for
remembering tags which need revalidation after a
mac_learning_changed() call. This removes one of
ofproto-dpif-xlate's dpif_backer uses.
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/mac-learning.h')
-rw-r--r-- | lib/mac-learning.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mac-learning.h b/lib/mac-learning.h index 666b00f4..1cbacfe0 100644 --- a/lib/mac-learning.h +++ b/lib/mac-learning.h @@ -85,6 +85,7 @@ struct mac_learning { unsigned long *flood_vlans; /* Bitmap of learning disabled VLANs. */ unsigned int idle_time; /* Max age before deleting an entry. */ size_t max_entries; /* Max number of learned MACs. */ + struct tag_set tags; /* Tags which have changed. */ }; /* Basics. */ @@ -107,7 +108,7 @@ bool mac_learning_may_learn(const struct mac_learning *, struct mac_entry *mac_learning_insert(struct mac_learning *, const uint8_t src[ETH_ADDR_LEN], uint16_t vlan); -tag_type mac_learning_changed(struct mac_learning *, struct mac_entry *); +void mac_learning_changed(struct mac_learning *, struct mac_entry *); /* Lookup. */ struct mac_entry *mac_learning_lookup(const struct mac_learning *, |