aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip4.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-06-11 08:57:52 -0400
committerDamjan Marion <dmarion@me.com>2020-06-12 12:06:29 +0000
commit01a2a10715551ccbad760cec641786aa079c373a (patch)
treebd9180e1456d2f0110ab6751a458ec4c4f7cd8b2 /src/vnet/ip/ip4.h
parent4cb21c8e5d70d20df94f5d892471a11488547881 (diff)
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 <dave@barachs.net> Change-Id: I5497e426a47200edff2c7e15563ed6a42af12e7f
Diffstat (limited to 'src/vnet/ip/ip4.h')
-rw-r--r--src/vnet/ip/ip4.h3
1 files changed, 3 insertions, 0 deletions
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;