diff options
author | Damjan Marion <damarion@cisco.com> | 2018-10-24 12:56:32 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-10-24 13:26:41 +0000 |
commit | 9787f5f90a6802e39fa7954c344ba89b03a6c4af (patch) | |
tree | 0035506066ab4cadec411fc19d8af6f3f5481705 /src/vppinfra/mem.h | |
parent | a35fc46c0ae6e6d21b35413bdc993171265fd4e5 (diff) |
vppinfra: autodetect default hugepage size
Change-Id: I5ff713ad0b254c74c5622e3b9425cca365b5ee97
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/mem.h')
-rw-r--r-- | src/vppinfra/mem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vppinfra/mem.h b/src/vppinfra/mem.h index 04c26d218aa..813ff6c88d8 100644 --- a/src/vppinfra/mem.h +++ b/src/vppinfra/mem.h @@ -390,6 +390,7 @@ clib_error_t *clib_mem_create_hugetlb_fd (char *name, int *fdp); clib_error_t *clib_mem_vm_ext_alloc (clib_mem_vm_alloc_t * a); void clib_mem_vm_ext_free (clib_mem_vm_alloc_t * a); u64 clib_mem_vm_get_page_size (int fd); +uword clib_mem_get_default_hugepage_size (void); int clib_mem_vm_get_log2_page_size (int fd); u64 *clib_mem_vm_get_paddr (void *mem, int log2_page_size, int n_pages); |