Harmonize vec/pool_get_aligned object sizes and alignment requests
[vpp.git] / src / vnet / dpo / load_balance_map.h
index 237f24b..82dd36b 100644 (file)
@@ -28,6 +28,12 @@ struct load_balance_map_path_t_;
 /**
  */
 typedef struct load_balance_map_t_ {
+    /**
+     * required for pool_get_aligned.
+     *  memebers used in the switch path come first!
+     */
+    CLIB_CACHE_LINE_ALIGN_MARK(cacheline0);
+
     /**
      * The buckets of the map that provide the index to index translation.
      * In the first cacheline.
@@ -59,7 +65,7 @@ extern void load_balance_map_unlock(index_t lbmi);
 
 extern void load_balance_map_path_state_change(fib_node_index_t path_index);
 
-extern u8* format_load_balance_map(u8 *s, va_list ap);
+extern u8* format_load_balance_map(u8 *s, va_list *ap);
 extern void load_balance_map_show_mem(void);
 
 /**