![]() |
FD.io VPP
v16.09
Vector Packet Processing
|
vlib buffer access methods. More...
Include dependency graph for buffer_funcs.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | vlib_packet_template_t |
| union | vlib_buffer_union_t |
Macros | |
| #define | always_inline static inline |
| #define | vlib_prefetch_buffer_with_index(vm, bi, type) |
| Prefetch buffer metadata by buffer index The first 64 bytes of buffer contains most header information. More... | |
vlib buffer access methods.
Definition in file buffer_funcs.h.
| #define always_inline static inline |
Definition at line 51 of file buffer_funcs.h.
| #define vlib_prefetch_buffer_with_index | ( | vm, | |
| bi, | |||
| type | |||
| ) |
Prefetch buffer metadata by buffer index The first 64 bytes of buffer contains most header information.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| bi | - (u32) buffer index |
| type | - LOAD, STORE. In most cases, STORE is the right answer |
Definition at line 182 of file buffer_funcs.h.
|
inlinestatic |
Definition at line 566 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:| void vlib_aligned_memcpy | ( | void * | _dst, |
| void * | _src, | ||
| int | n_bytes | ||
| ) |
Definition at line 161 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u32 vlib_buffer_add_data | ( | vlib_main_t * | vm, |
| u32 | free_list_index, | ||
| u32 | buffer_index, | ||
| void * | data, | ||
| u32 | n_data_bytes | ||
| ) |
Definition at line 851 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u32 vlib_buffer_alloc | ( | vlib_main_t * | vm, |
| u32 * | buffers, | ||
| u32 | n_buffers | ||
| ) |
Allocate buffers into supplied array.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| buffers | - (u32 * ) buffer index array |
| n_buffers | - (u32) number of buffers requested |
Definition at line 643 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u32 vlib_buffer_alloc_from_free_list | ( | vlib_main_t * | vm, |
| u32 * | buffers, | ||
| u32 | n_buffers, | ||
| u32 | free_list_index | ||
| ) |
Allocate buffers from specific freelist into supplied array.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| buffers | - (u32 * ) buffer index array |
| n_buffers | - (u32) number of buffers requested |
Definition at line 655 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
| u16 vlib_buffer_chain_append_data_with_alloc | ( | vlib_main_t * | vm, |
| u32 | free_list_index, | ||
| vlib_buffer_t * | first, | ||
| vlib_buffer_t ** | last, | ||
| void * | data, | ||
| u16 | data_len | ||
| ) |
Definition at line 908 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 447 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
|
inlinestatic |
| void vlib_buffer_chain_validate | ( | vlib_main_t * | vm, |
| vlib_buffer_t * | first | ||
| ) |
Definition at line 946 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Copy buffer contents to memory.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| buffer_index | - (u32) buffer index |
| contents | - (u8 *) memory, must be large enough |
Definition at line 143 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:| u32 vlib_buffer_create_free_list | ( | vlib_main_t * | vm, |
| u32 | n_data_bytes, | ||
| char * | fmt, | ||
| ... | |||
| ) |
Definition at line 366 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void vlib_buffer_delete_free_list | ( | vlib_main_t * | vm, |
| u32 | free_list_index | ||
| ) |
Definition at line 434 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void vlib_buffer_free | ( | vlib_main_t * | vm, |
| u32 * | buffers, | ||
| u32 | n_buffers | ||
| ) |
Free buffers Frees the entire buffer chain for each buffer.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| buffers | - (u32 * ) buffer index array |
| n_buffers | - (u32) number of buffers to free |
Definition at line 766 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 351 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:| void vlib_buffer_free_no_next | ( | vlib_main_t * | vm, |
| u32 * | buffers, | ||
| u32 | n_buffers | ||
| ) |
Free buffers, does not free the buffer chain for each buffer.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| buffers | - (u32 * ) buffer index array |
| n_buffers | - (u32) number of buffers to free |
Definition at line 773 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Free one buffer Shorthand to free a single buffer chain.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| buffer_index | - (u32) buffer index to free |
Definition at line 322 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
| u32 vlib_buffer_get_or_create_free_list | ( | vlib_main_t * | vm, |
| u32 | n_data_bytes, | ||
| char * | fmt, | ||
| ... | |||
| ) |
Definition at line 383 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Get length in bytes of the buffer index buffer chain.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| bi | - (u32) buffer index |
Definition at line 129 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
|
inlinestatic |
Definition at line 641 of file buffer_funcs.h.
|
inlinestatic |
Get length in bytes of the buffer chain.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| b | - (void *) buffer pointer |
Definition at line 112 of file buffer_funcs.h.
Here is the call graph for this function:| uword vlib_buffer_length_in_chain_slow_path | ( | vlib_main_t * | vm, |
| vlib_buffer_t * | b_first | ||
| ) |
Definition at line 82 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| clib_error_t* vlib_buffer_pool_create | ( | vlib_main_t * | vm, |
| unsigned | num_mbufs, | ||
| unsigned | socket_id | ||
| ) |
Definition at line 968 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 271 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Translate buffer index into buffer pointer.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| buffer_index | - (u32) buffer index |
Definition at line 69 of file buffer_funcs.h.
Here is the call graph for this function:
|
inlinestatic |
Definition at line 165 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Translate buffer pointer into buffer index.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| p | - (void *) buffer pointer |
Definition at line 82 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Get next buffer in buffer linklist, or zero for end of list.
| vm | - (vlib_main_t *) vlib main data structure pointer |
| b | - (void *) buffer pointer |
Definition at line 96 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 560 of file buffer_funcs.h.
| void* vlib_packet_template_get_packet | ( | vlib_main_t * | vm, |
| vlib_packet_template_t * | t, | ||
| u32 * | bi_result | ||
| ) |
Definition at line 824 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void vlib_packet_template_get_packet_helper | ( | vlib_main_t * | vm, |
| vlib_packet_template_t * | t | ||
| ) |
| void vlib_packet_template_init | ( | vlib_main_t * | vm, |
| vlib_packet_template_t * | t, | ||
| void * | packet_data, | ||
| uword | n_packet_data_bytes, | ||
| uword | min_n_buffers_each_physmem_alloc, | ||
| char * | fmt, | ||
| ... | |||
| ) |
Definition at line 801 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 400 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
|
inlinestatic |
Definition at line 407 of file buffer_funcs.h.
|
inlinestatic |
Definition at line 413 of file buffer_funcs.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
|
inlinestatic |
| format_function_t format_vlib_buffer |
Definition at line 525 of file buffer_funcs.h.
| format_function_t format_vlib_buffer_and_data |
Definition at line 525 of file buffer_funcs.h.
| format_function_t format_vlib_buffer_contents |
Definition at line 525 of file buffer_funcs.h.
| void* vlib_buffer_state_heap |
Definition at line 674 of file buffer_funcs.h.
| uword* vlib_buffer_state_validation_hash |
Definition at line 673 of file buffer_funcs.h.
| u32* vlib_buffer_state_validation_lock |
Definition at line 672 of file buffer_funcs.h.