svm: add explicit dependency on lock for fifo types
[vpp.git] / src / svm / fifo_types.h
index f0a286d..c1e22d1 100644 (file)
@@ -19,6 +19,7 @@
 #include <svm/ssvm.h>
 #include <vppinfra/clib.h>
 #include <vppinfra/rbtree.h>
+#include <vppinfra/lock.h>
 
 #define SVM_FIFO_TRACE                         (0)
 #define SVM_FIFO_MAX_EVT_SUBSCRIBERS   7
@@ -120,6 +121,7 @@ struct fifo_segment_header_
   u8 n_slices;                         /**< Number of slices */
   u8 high_watermark;                   /**< Memory pressure watermark high */
   u8 low_watermark;                    /**< Memory pressure watermark low */
+  u8 pct_first_alloc;                  /**< Pct of fifo size to alloc */
 };
 
 #endif /* SRC_SVM_FIFO_TYPES_H_ */