diff options
author | Damjan Marion <damarion@cisco.com> | 2018-03-13 21:32:17 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-03-14 16:38:06 +0000 |
commit | d1274cb207a48f0142a5a6cbcd22d61c22dbc230 (patch) | |
tree | bad838ef9e2d89271f7222b341935f6d1958af8a /src/vlib/main.h | |
parent | 1f15facc74b1313dd680cf20eb6f490cc743b2a1 (diff) |
vlib: internal buffer manager rework
- buffer_main is no longer part of vlib_main_t
- pool of free lists is still part of vlib_main_t
- mheap is not used anymore for buffer allocation
- simple bitmap bassed buffer alloc scheme is introduced
Change-Id: I3e1e6d00e2c8122293ed0a741245eb841315a1ff
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/main.h')
-rw-r--r-- | src/vlib/main.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vlib/main.h b/src/vlib/main.h index 2eec930e9b6..4e48d1de09c 100644 --- a/src/vlib/main.h +++ b/src/vlib/main.h @@ -103,7 +103,11 @@ typedef struct vlib_main_t void *heap_base; uword heap_size; - vlib_buffer_main_t *buffer_main; + /* Pool of buffer free lists. */ + vlib_buffer_free_list_t *buffer_free_list_pool; + + /* 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. */ |