diff options
author | Damjan Marion <damarion@cisco.com> | 2017-11-10 21:55:45 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-11-13 16:14:50 +0000 |
commit | 04f3db3847d242857b9d9d858bcdca538a1be7d7 (patch) | |
tree | e0304ad2a3986698d62e9a164f5a0a28565cef01 /src/vlib/buffer.h | |
parent | 2d8bf304230102a6d9b312b98315418617798175 (diff) |
dpdk: introduce AVX512 variants of node functions
Change-Id: If581feca0d51d0420c971801aecdf9250c671b36
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/buffer.h')
-rw-r--r-- | src/vlib/buffer.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/vlib/buffer.h b/src/vlib/buffer.h index 6170323c815..21bed48ac14 100644 --- a/src/vlib/buffer.h +++ b/src/vlib/buffer.h @@ -380,17 +380,23 @@ typedef struct vlib_buffer_free_list_t uword buffer_init_function_opaque; } __attribute__ ((aligned (16))) vlib_buffer_free_list_t; +typedef u32 (vlib_buffer_alloc_cb_t) (struct vlib_main_t * vm, u32 * buffers, + u32 n_buffers); +typedef u32 (vlib_buffer_alloc_from_free_list_cb_t) (struct vlib_main_t * vm, + u32 * buffers, + u32 n_buffers, + u32 free_list_index); +typedef void (vlib_buffer_free_cb_t) (struct vlib_main_t * vm, u32 * buffers, + u32 n_buffers); +typedef void (vlib_buffer_free_no_next_cb_t) (struct vlib_main_t * vm, + u32 * buffers, u32 n_buffers); + typedef struct { - u32 (*vlib_buffer_alloc_cb) (struct vlib_main_t * vm, u32 * buffers, - u32 n_buffers); - u32 (*vlib_buffer_alloc_from_free_list_cb) (struct vlib_main_t * vm, - u32 * buffers, u32 n_buffers, - u32 free_list_index); - void (*vlib_buffer_free_cb) (struct vlib_main_t * vm, u32 * buffers, - u32 n_buffers); - void (*vlib_buffer_free_no_next_cb) (struct vlib_main_t * vm, u32 * buffers, - u32 n_buffers); + vlib_buffer_alloc_cb_t *vlib_buffer_alloc_cb; + vlib_buffer_alloc_from_free_list_cb_t *vlib_buffer_alloc_from_free_list_cb; + vlib_buffer_free_cb_t *vlib_buffer_free_cb; + vlib_buffer_free_no_next_cb_t *vlib_buffer_free_no_next_cb; void (*vlib_packet_template_init_cb) (struct vlib_main_t * vm, void *t, void *packet_data, uword n_packet_data_bytes, |