fib: Compiile time option to use 8-8-8-8 stride tries for FIB rather 42/33442/4
authorNeale Ranns <neale@graphiant.com>
Tue, 10 Aug 2021 14:37:11 +0000 (14:37 +0000)
committerOle Tr�an <otroan@employees.org>
Wed, 11 Aug 2021 08:48:42 +0000 (08:48 +0000)
commita70b015ceeee158eac0d9b33d12c596e1af409b3
treee201f192ee991198f7a202eb8eafcc1159c1f29a
parentd6953332db225d5355f50348ef3b09f0525d5282
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 <neale@graphiant.com>
Change-Id: I5271a4322d786de6e47613cff9bd432762dbed2a
src/vnet/CMakeLists.txt
src/vnet/fib/ip4_fib.h
src/vpp/vnet/config.h.in