diff options
author | Damjan Marion <damarion@cisco.com> | 2020-09-24 13:53:46 +0200 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2020-09-25 12:33:07 +0000 |
commit | 561ae5d17b5565d0644a5249acc8fdb7a6f72b44 (patch) | |
tree | 729bbbe513615494d2616f4523b39ec0817e18ff /src/vppinfra/mem.h | |
parent | 03b2695f17a297641e78b3901e17d617d893e3a7 (diff) |
vppinfra: add clib_mem_set_numa_affinity()
Type: improvement
Change-Id: I81a7fb71c8ce0c0d22e326a4ddd01bc1c1aea5f7
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/mem.h')
-rw-r--r-- | src/vppinfra/mem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vppinfra/mem.h b/src/vppinfra/mem.h index 3ba20ad6d3e..9fc7f0efa76 100644 --- a/src/vppinfra/mem.h +++ b/src/vppinfra/mem.h @@ -54,6 +54,7 @@ #define CLIB_MAX_MHEAPS 256 #define CLIB_MAX_NUMAS 16 #define CLIB_MEM_VM_MAP_FAILED ((void *) ~0) +#define CLIB_MEM_ERROR (-1) typedef enum { @@ -476,6 +477,8 @@ u64 *clib_mem_vm_get_paddr (void *mem, clib_mem_page_sz_t log2_page_size, int n_pages); void clib_mem_destroy_mspace (void *mspace); void clib_mem_destroy (void); +int clib_mem_set_numa_affinity (u8 numa_node, int force); +int clib_mem_set_default_numa_affinity (); typedef struct { |