From a70b015ceeee158eac0d9b33d12c596e1af409b3 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 10 Aug 2021 14:37:11 +0000 Subject: fib: Compiile time option to use 8-8-8-8 stride tries for FIB rather than 16-8-8-8 Type: feature the memory trade-off is: for 8-8-8-8 tries DBGvpp# sh ip fib mtrie mem ipv4-VRF:0 mtrie:8068 hash:3499 totals: mtrie:8068 hash:3499 all:11567 for 16-8-8 DBGvpp# sh ip fib mtrie mem ipv4-VRF:0 mtrie:333056 hash:3499 totals: mtrie:333056 hash:3499 all:336555 Signed-off-by: Neale Ranns Change-Id: I5271a4322d786de6e47613cff9bd432762dbed2a --- src/vnet/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/CMakeLists.txt') diff --git a/src/vnet/CMakeLists.txt b/src/vnet/CMakeLists.txt index df23738013d..66a4abc3a41 100644 --- a/src/vnet/CMakeLists.txt +++ b/src/vnet/CMakeLists.txt @@ -16,6 +16,8 @@ unset(VNET_HEADERS) unset(VNET_API_FILES) unset(VNET_MULTIARCH_SOURCES) +option(VPP_IP_FIB_MTRIE_16 "IP FIB's MTRIE Stride is 16-8-8 (if not set it's 8-8-8-8)" ON) + ############################################################################## # Generic stuff ############################################################################## -- cgit 1.2.3-korg