From 66d4cb5a217d556aa7bd2471f02a39badb6d5cd2 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 17 Mar 2022 18:59:46 +0100 Subject: vppinfra: refactor *_will_expand() functions Type: refactor Change-Id: I3625eacf9e04542ca8778df5d46075a8654642c7 Signed-off-by: Damjan Marion --- src/vnet/ip/ip_path_mtu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/vnet/ip/ip_path_mtu.c') diff --git a/src/vnet/ip/ip_path_mtu.c b/src/vnet/ip/ip_path_mtu.c index 84dd625c225..ccb57e1e352 100644 --- a/src/vnet/ip/ip_path_mtu.c +++ b/src/vnet/ip/ip_path_mtu.c @@ -298,11 +298,9 @@ static ip_pmtu_dpo_t * ip_pmtu_dpo_alloc (void) { vlib_main_t *vm = vlib_get_main (); - u8 need_barrier_sync = 0; + u8 need_barrier_sync = pool_get_will_expand (ip_pmtu_dpo_pool); ip_pmtu_dpo_t *ipm; - pool_get_aligned_will_expand (ip_pmtu_dpo_pool, need_barrier_sync, - sizeof (ip_pmtu_dpo_t)); if (need_barrier_sync) vlib_worker_thread_barrier_sync (vm); -- cgit 1.2.3-korg