X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fsvm%2Ffifo_types.h;h=234fd9f2f7b71a406dfd420e446e9d2f4f704463;hb=67ec589d231cd27261ccf2265ee8627cfce0fa00;hp=a80130b0e926d17cdc76089d58a7859d313825a6;hpb=2de9c0f92bb486072d8371a24d9b23fd85e1aa80;p=vpp.git diff --git a/src/svm/fifo_types.h b/src/svm/fifo_types.h index a80130b0e92..234fd9f2f7b 100644 --- a/src/svm/fifo_types.h +++ b/src/svm/fifo_types.h @@ -19,6 +19,7 @@ #include #include #include +#include #define SVM_FIFO_TRACE (0) #define SVM_FIFO_MAX_EVT_SUBSCRIBERS 7 @@ -103,7 +104,9 @@ typedef struct fifo_segment_slice_ svm_fifo_t *fifos; /**< Linked list of active RX fifos */ svm_fifo_t *free_fifos; /**< Freelists by fifo size */ svm_fifo_chunk_t **free_chunks; /**< Freelists by chunk size */ + u32 *num_chunks; /**< Allocated chunks by chunk size */ uword n_fl_chunk_bytes; /**< Chunk bytes on freelist */ + uword virtual_mem; /**< Slice sum of all fifo sizes */ clib_spinlock_t chunk_lock; } fifo_segment_slice_t; @@ -123,6 +126,9 @@ struct fifo_segment_header_ u8 pct_first_alloc; /**< Pct of fifo size to alloc */ }; +void fsh_virtual_mem_update (fifo_segment_header_t * fsh, u32 slice_index, + int n_bytes); + #endif /* SRC_SVM_FIFO_TYPES_H_ */ /*