ip: add support to preallocate pools 91/42191/4
authorMohsin Kazmi <[email protected]>
Mon, 10 Feb 2025 11:19:47 +0000 (11:19 +0000)
committerNeale Ranns <[email protected]>
Sat, 15 Feb 2025 03:06:12 +0000 (03:06 +0000)
commit9a834c0112b0987bbbb173f6da67d3c111aeecad
tree10759b22ddca07480c4e801eb89b1cf8e7c8d1a7
parent884ab372500c9937d4ae21e0bc77ea51e6144307
ip: add support to preallocate pools

Type: improvement

In certain use cases, the underlying pools expand by allocating a new,
larger pool and copying the existing elements into it. This process
can be time-consuming, leading to slower control plane configurations,
especially when a large number of elements are already present.
This patch allows users to pre-configure some of these pools through
startup.conf.
It also fixes alignment for ip4 mtrie.

Signed-off-by: Mohsin Kazmi <[email protected]>
Signed-off-by: BenoĆ®t Ganne <[email protected]>
Change-Id: Ib0f1d40e3efb8b4fce989219196c718d6834498a
src/vnet/dpo/load_balance.c
src/vnet/dpo/load_balance.h
src/vnet/fib/fib_entry.c
src/vnet/fib/fib_entry.h
src/vnet/ip/ip4_mtrie.c
src/vnet/ip/ip4_mtrie.h
src/vnet/ip/ip_init.c
src/vpp/conf/startup.conf