X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fbihash_template.c;h=2305436dca2def7589dac9df36b58afd3fb432c5;hb=e6db7752df1980cc3f4f6328d12444a79cd02c2b;hp=47e9bd0113dc6433a42fdf8b992912bb3d180691;hpb=ce17f46b8128d46e6168f45a0cd831e72a4d4bcb;p=vpp.git diff --git a/src/vppinfra/bihash_template.c b/src/vppinfra/bihash_template.c index 47e9bd0113d..2305436dca2 100644 --- a/src/vppinfra/bihash_template.c +++ b/src/vppinfra/bihash_template.c @@ -38,7 +38,7 @@ static inline void *BV (alloc_aligned) (BVT (clib_bihash) * h, uword nbytes) void *base, *rv; uword alloc = alloc_arena_next (h) - alloc_arena_mapped (h); int mmap_flags = MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS; - int mmap_flags_huge = (mmap_flags | MAP_HUGETLB | + int mmap_flags_huge = (mmap_flags | MAP_HUGETLB | MAP_LOCKED | BIHASH_LOG2_HUGEPAGE_SIZE << MAP_HUGE_SHIFT); /* new allocation is 25% of existing one */