ssvm: reuse clib mem infra for memfd segments
[vpp.git] / src / svm / svm_fifo_segment.h
index 7c97e9b..405df93 100644 (file)
@@ -15,8 +15,8 @@
 #ifndef __included_ssvm_fifo_segment_h__
 #define __included_ssvm_fifo_segment_h__
 
-#include <svm/svm_fifo.h>
 #include <svm/ssvm.h>
+#include <svm/svm_fifo.h>
 #include <vppinfra/lock.h>
 
 typedef enum
@@ -33,6 +33,7 @@ typedef enum
 
 #define FIFO_SEGMENT_F_IS_PRIVATE      1 << 0  /* Private segment */
 #define FIFO_SEGMENT_F_IS_MAIN_HEAP    1 << 1  /* Segment is main heap */
+#define FIFO_SEGMENT_F_IS_PREALLOCATED 1 << 2  /* Segment is preallocated */
 
 typedef struct
 {
@@ -71,7 +72,6 @@ typedef struct
   u32 tx_fifo_size;
   u32 preallocated_fifo_pairs;
   u32 private_segment_count;
-  u32 private_segment_size;
 } svm_fifo_segment_create_args_t;
 
 static inline svm_fifo_segment_private_t *