diff options
author | Damjan Marion <damarion@cisco.com> | 2019-01-07 20:56:04 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-01-07 21:57:17 +0000 |
commit | d2bfb78f4f8fbfae204424467a4106530b89e608 (patch) | |
tree | ef7f5c75f313c973eed5b441646d6898c717198a /src/vlib/physmem_funcs.h | |
parent | 7c03ed47d5acfa39820f9553999caa01cf47dba4 (diff) |
avf: allocate descriptor memory from local numa
Change-Id: Ic56ee4ce83b282a5f0f5aed500721fe639b941b3
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/physmem_funcs.h')
-rw-r--r-- | src/vlib/physmem_funcs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vlib/physmem_funcs.h b/src/vlib/physmem_funcs.h index 70fb8e74fc7..18daeebabd9 100644 --- a/src/vlib/physmem_funcs.h +++ b/src/vlib/physmem_funcs.h @@ -54,6 +54,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) |