Add support for AArch32
[vpp.git] / vlib / vlib / threads.h
index 98f19c4..ce93b2c 100644 (file)
@@ -48,7 +48,13 @@ typedef struct vlib_thread_registration_ {
  * Make VLIB_MAX_CPUS a power-of-two, please...
  */
 
+#ifndef VLIB_MAX_CPUS
 #define VLIB_MAX_CPUS 256
+#endif
+
+#if VLIB_MAX_CPUS > CLIB_MAX_MHEAPS
+#error Please increase number of per-cpu mheaps
+#endif
 
 #define VLIB_CPU_MASK (VLIB_MAX_CPUS - 1) /* 0x3f, max */
 #define VLIB_OFFSET_MASK (~VLIB_CPU_MASK)
@@ -89,6 +95,7 @@ typedef struct {
   u32 instance_id;
   vlib_thread_registration_t *registration;
   u8 *name;
+  u64 barrier_sync_count;
 
   long lwp;
   int dpdk_lcore_id;