Add extern to *_main global variable declarations in header files.
[vpp.git] / src / vnet / l2 / l2_learn.h
index 5bb1130..c107145 100644 (file)
@@ -34,6 +34,10 @@ typedef struct
   /* maximum number of dynamically learned mac entries */
   u32 global_learn_limit;
 
+  /* client waiting for L2 MAC events for learned and aged MACs */
+  u32 client_pid;
+  u32 client_index;
+
   /* Next nodes for each feature */
   u32 feat_next_node_index[32];
 
@@ -42,8 +46,9 @@ typedef struct
   vnet_main_t *vnet_main;
 } l2learn_main_t;
 
+#define L2LEARN_DEFAULT_LIMIT (L2FIB_NUM_BUCKETS * 64)
 
-l2learn_main_t l2learn_main;
+extern l2learn_main_t l2learn_main;
 
 extern vlib_node_registration_t l2fib_mac_age_scanner_process_node;
 
@@ -51,6 +56,7 @@ enum
 {
   L2_MAC_AGE_PROCESS_EVENT_START = 1,
   L2_MAC_AGE_PROCESS_EVENT_STOP = 2,
+  L2_MAC_AGE_PROCESS_EVENT_ONE_PASS = 3,
 } l2_mac_age_process_event_t;
 
 #endif