diff options
author | Damjan Marion <damarion@cisco.com> | 2019-01-20 00:03:56 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-01-20 19:23:53 +0000 |
commit | d50e3477635e6cc2592cbf30d4fdcee842053624 (patch) | |
tree | 5fbb767d3ef221630f1760af8f7f33263db4b928 /src/vlib/buffer.h | |
parent | 0a78fa17cbbeec8137ae823d3c5da8c6bec5ac6e (diff) |
buffers: keep buffer_main in vlib_main_t
Change-Id: I3bb1d9f83dd08f4b93acd4a281bfec0674e39c2e
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/buffer.h')
-rw-r--r-- | src/vlib/buffer.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/vlib/buffer.h b/src/vlib/buffer.h index 56d855101d5..672131b935d 100644 --- a/src/vlib/buffer.h +++ b/src/vlib/buffer.h @@ -458,16 +458,7 @@ typedef struct int callbacks_registered; } vlib_buffer_main_t; -extern vlib_buffer_main_t buffer_main; - -static_always_inline vlib_buffer_pool_t * -vlib_buffer_pool_get (u8 buffer_pool_index) -{ - vlib_buffer_main_t *bm = &buffer_main; - return vec_elt_at_index (bm->buffer_pools, buffer_pool_index); -} - -u8 vlib_buffer_register_physmem_map (struct vlib_main_t * vm, +u8 vlib_buffer_register_physmem_map (struct vlib_main_t *vm, u32 physmem_map_index); clib_error_t *vlib_buffer_main_init (struct vlib_main_t *vm); |