X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvlib%2Fmain.h;h=8b6f94786196ccd0be12ee1f5eb462bacbe16831;hb=refs%2Fchanges%2F56%2F13356%2F20;hp=28412e823a9f4a7b6f36e530389d2b5c7b18290a;hpb=2877eee189993dbd1b9a5c3d22499930a4768786;p=vpp.git diff --git a/src/vlib/main.h b/src/vlib/main.h index 28412e823a9..8b6f9478619 100644 --- a/src/vlib/main.h +++ b/src/vlib/main.h @@ -58,6 +58,7 @@ typedef struct vlib_main_t { + CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); /* Instruction level timing state. */ clib_time_t clib_time; @@ -99,13 +100,20 @@ typedef struct vlib_main_t /* Name for e.g. syslog. */ char *name; - /* Start and size of CLIB heap. */ + /* Start of the heap. */ void *heap_base; + + /* Truncated version, to create frame indices */ + void *heap_aligned_base; + + /* Size of the heap */ uword heap_size; - vlib_buffer_main_t *buffer_main; + /* Pool of buffer free lists. */ + vlib_buffer_free_list_t *buffer_free_list_pool; - vlib_physmem_main_t physmem_main; + /* List of free-lists needing Blue Light Special announcements */ + vlib_buffer_free_list_t **buffer_announce_list; /* Allocate/free buffer memory for DMA transfers, descriptor rings, etc. buffer memory is guaranteed to be cache-aligned. */ @@ -172,8 +180,6 @@ typedef struct vlib_main_t /* to compare with node runtime */ u32 thread_index; - void **mbuf_alloc_list; - /* List of init functions to call, setup by constructors */ _vlib_init_function_list_elt_t *init_function_registrations; _vlib_init_function_list_elt_t *worker_init_function_registrations;