![]() |
FD.io VPP
v16.09
Vector Packet Processing
|
Allocate/free network buffers with DPDK. More...
Include dependency graph for dpdk_buffer.c:Go to the source code of this file.
Macros | |
| #define | BUFFERS_PER_COPY (sizeof (vlib_copy_unit_t) / sizeof (u32)) |
Variables | |
| vlib_main_t ** | vlib_mains |
| static vlib_cli_command_t | show_buffers_command |
| (constructor) VLIB_CLI_COMMAND (show_buffers_command) More... | |
| u32 * | vlib_buffer_state_validation_lock |
| uword * | vlib_buffer_state_validation_hash |
| void * | vlib_buffer_state_heap |
Allocate/free network buffers with DPDK.
Definition in file dpdk_buffer.c.
| #define BUFFERS_PER_COPY (sizeof (vlib_copy_unit_t) / sizeof (u32)) |
Definition at line 221 of file dpdk_buffer.c.
|
inlinestatic |
Definition at line 666 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 529 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
|
static |
Definition at line 523 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 407 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 459 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 99 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1321 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 279 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u32 serialize_close_vlib_buffer | ( | serialize_main_t * | m | ) |
Definition at line 1283 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void serialize_open_vlib_buffer | ( | serialize_main_t * | m, |
| vlib_main_t * | vm, | ||
| vlib_serialize_buffer_main_t * | sm | ||
| ) |
Definition at line 1269 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1245 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
| void unserialize_close_vlib_buffer | ( | serialize_main_t * | m | ) |
Definition at line 1308 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void unserialize_open_vlib_buffer | ( | serialize_main_t * | m, |
| vlib_main_t * | vm, | ||
| vlib_serialize_buffer_main_t * | sm | ||
| ) |
Definition at line 1276 of file dpdk_buffer.c.
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:| 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:| void vlib_buffer_chain_validate | ( | vlib_main_t * | vm, |
| vlib_buffer_t * | b_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:| 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:
|
static |
Definition at line 317 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:| static_always_inline void vlib_buffer_free_inline | ( | vlib_main_t * | vm, |
| u32 * | buffers, | ||
| u32 | n_buffers, | ||
| u32 | follow_buffer_next | ||
| ) |
Definition at line 699 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_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 |
Definition at line 306 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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:| 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:
|
static |
| 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_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:
|
static |
Definition at line 1194 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1122 of file dpdk_buffer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void* vlib_set_buffer_free_callback | ( | vlib_main_t * | vm, |
| void * | fp | ||
| ) |
Definition at line 689 of file dpdk_buffer.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_buffers_command)
Definition at line 1376 of file dpdk_buffer.c.
| void* vlib_buffer_state_heap |
Definition at line 1387 of file dpdk_buffer.c.
| uword* vlib_buffer_state_validation_hash |
Definition at line 1386 of file dpdk_buffer.c.
| u32* vlib_buffer_state_validation_lock |
Definition at line 1385 of file dpdk_buffer.c.
| vlib_main_t** vlib_mains |
Definition at line 157 of file dpdk_buffer.c.