X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvlib%2Fphysmem_funcs.h;h=d93bae8fbe5eed132ed73e446ed5d6c7a7855d0a;hb=8ceb44a893e05c53e6d7de36a32215f549953eb0;hp=70fb8e74fc7e7c7209b681417741d93bebd526f7;hpb=567e61d09cd00174203eff85f63a598420476951;p=vpp.git diff --git a/src/vlib/physmem_funcs.h b/src/vlib/physmem_funcs.h index 70fb8e74fc7..d93bae8fbe5 100644 --- a/src/vlib/physmem_funcs.h +++ b/src/vlib/physmem_funcs.h @@ -40,6 +40,11 @@ #ifndef included_vlib_physmem_funcs_h #define included_vlib_physmem_funcs_h +#include +#include +#include +#include + clib_error_t *vlib_physmem_init (vlib_main_t * vm); clib_error_t *vlib_physmem_shared_map_create (vlib_main_t * vm, char *name, uword size, u32 log2_page_sz, @@ -54,6 +59,15 @@ vlib_physmem_alloc_aligned (vlib_main_t * vm, uword n_bytes, uword alignment) return clib_pmalloc_alloc_aligned (pm, n_bytes, alignment); } +always_inline void * +vlib_physmem_alloc_aligned_on_numa (vlib_main_t * vm, uword n_bytes, + uword alignment, u32 numa_node) +{ + clib_pmalloc_main_t *pm = vm->physmem_main.pmalloc_main; + return clib_pmalloc_alloc_aligned_on_numa (pm, n_bytes, alignment, + numa_node); +} + /* By default allocate I/O memory with cache line alignment. */ always_inline void * vlib_physmem_alloc (vlib_main_t * vm, uword n_bytes)