svec: New function svec_is_empty().
[sliver-openvswitch.git] / lib / mac-learning.h
index aa164d3..e2ee74b 100644 (file)
 #define MAC_HASH_MASK (MAC_HASH_SIZE - 1)
 #define MAC_HASH_SIZE (1u << MAC_HASH_BITS)
 
-#define MAC_MAX 1024
+#define MAC_MAX 2048
+
+/* Time, in seconds, before expiring a mac_entry due to inactivity. */
+#define MAC_ENTRY_IDLE_TIME 60
 
 /* A MAC learning table entry. */
 struct mac_entry {
@@ -39,6 +42,8 @@ struct mac_entry {
     tag_type tag;               /* Tag for this learning entry. */
 };
 
+int mac_entry_age(const struct mac_entry *);
+
 /* MAC learning table. */
 struct mac_learning {
     struct list free;           /* Not-in-use entries. */