|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
40 #ifndef included_vlib_physmem_funcs_h
41 #define included_vlib_physmem_funcs_h
51 u32 numa_node,
u32 * map_index);
static u64 vlib_physmem_get_page_index(vlib_main_t *vm, void *mem)
static void * vlib_physmem_alloc_aligned(vlib_main_t *vm, uword n_bytes, uword alignment)
static uword clib_pmalloc_get_pa(clib_pmalloc_main_t *pm, void *va)
static void * vlib_physmem_alloc(vlib_main_t *vm, uword n_bytes)
static void vlib_physmem_free(vlib_main_t *vm, void *p)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
clib_pmalloc_main_t * pmalloc_main
vlib_physmem_map_t * vlib_physmem_get_map(vlib_main_t *vm, u32 index)
static u32 clib_pmalloc_get_page_index(clib_pmalloc_main_t *pm, void *va)
static u64 vlib_physmem_get_pa(vlib_main_t *vm, void *mem)
__clib_export void clib_pmalloc_free(clib_pmalloc_main_t *pm, void *va)
vlib_physmem_main_t physmem_main
void * clib_pmalloc_alloc_aligned(clib_pmalloc_main_t *pm, uword size, uword align)
clib_error_t * vlib_physmem_shared_map_create(vlib_main_t *vm, char *name, uword size, u32 log2_page_sz, u32 numa_node, u32 *map_index)
#define CLIB_CACHE_LINE_BYTES
__clib_export void * clib_pmalloc_alloc_from_arena(clib_pmalloc_main_t *pm, void *arena_va, uword size, uword align)
static clib_error_t * vlib_physmem_last_error(struct vlib_main_t *vm)
clib_error_t * vlib_physmem_init(vlib_main_t *vm)
static void * vlib_physmem_alloc_aligned_on_numa(vlib_main_t *vm, uword n_bytes, uword alignment, u32 numa_node)
__clib_export void * clib_pmalloc_alloc_aligned_on_numa(clib_pmalloc_main_t *pm, uword size, uword align, u32 numa_node)
static void * vlib_physmem_alloc_from_map(vlib_main_t *vm, u32 physmem_map_index, uword n_bytes, uword alignment)