X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fsvm%2Ffifo_segment.h;h=02d45d3244d6520b5289836e4d80a9e25cd0312e;hb=5c944eef7012e7c5b363399ed92966fb659196b7;hp=d363c6058a777cf53aab8c7361b928419c9b9a53;hpb=ef4f3e7fea359f651c548182a7597abc066ca372;p=vpp.git diff --git a/src/svm/fifo_segment.h b/src/svm/fifo_segment.h index d363c6058a7..02d45d3244d 100644 --- a/src/svm/fifo_segment.h +++ b/src/svm/fifo_segment.h @@ -35,6 +35,7 @@ typedef enum fifo_segment_flags_ { FIFO_SEGMENT_F_IS_PREALLOCATED = 1 << 0, FIFO_SEGMENT_F_WILL_DELETE = 1 << 1, + FIFO_SEGMENT_F_MEM_LIMIT = 1 << 2, } fifo_segment_flags_t; typedef struct fifo_segment_slice_ @@ -51,6 +52,7 @@ typedef struct ssvm_shared_header_t *ssvm_sh; /**< Pointer to fs ssvm shared hdr */ uword n_free_bytes; /**< Segment free bytes */ u32 n_active_fifos; /**< Number of active fifos */ + u32 n_reserved_bytes; /**< Bytes not to be allocated */ u32 max_log2_chunk_size; /**< Max log2(chunk size) for fs */ u8 flags; /**< Segment flags */ u8 n_slices; /**< Number of slices */