From 01a2a10715551ccbad760cec641786aa079c373a Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Thu, 11 Jun 2020 08:57:52 -0400 Subject: ip: allocate ip4 mtrie pages in htlb memory No change in default behavior. To use htlb pages for the ip4 mtrie, use the "ip" command-line option "mtrie-hugetlb". Type: improvement Signed-off-by: Dave Barach Change-Id: I5497e426a47200edff2c7e15563ed6a42af12e7f --- src/vnet/ip/ip4.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vnet/ip/ip4.h') diff --git a/src/vnet/ip/ip4.h b/src/vnet/ip/ip4.h index b5bc2e2c33f..f5ed9385232 100644 --- a/src/vnet/ip/ip4.h +++ b/src/vnet/ip/ip4.h @@ -167,6 +167,9 @@ typedef struct ip4_main_t /** Heapsize for the Mtries */ uword mtrie_heap_size; + /** Use hugetlb pages for the Mtries */ + int mtrie_hugetlb; + /** The memory heap for the mtries */ void *mtrie_mheap; -- cgit 1.2.3-korg