diff options
author | Damjan Marion <damarion@cisco.com> | 2022-03-17 18:59:46 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-03-18 13:16:36 +0000 |
commit | 66d4cb5a217d556aa7bd2471f02a39badb6d5cd2 (patch) | |
tree | 53d4333bed2cdfc16e5e1d5858e6a70fab9bc1ca /src/vnet/fib/fib_entry.c | |
parent | 05563c9a904b6bb862ba783dc3519c8415bf9cf5 (diff) |
vppinfra: refactor *_will_expand() functions
Type: refactor
Change-Id: I3625eacf9e04542ca8778df5d46075a8654642c7
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/fib/fib_entry.c')
-rw-r--r-- | src/vnet/fib/fib_entry.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/fib/fib_entry.c b/src/vnet/fib/fib_entry.c index 6f579696f29..b78346ce45a 100644 --- a/src/vnet/fib/fib_entry.c +++ b/src/vnet/fib/fib_entry.c @@ -537,11 +537,10 @@ fib_entry_alloc (u32 fib_index, { fib_entry_t *fib_entry; fib_prefix_t *fep; - u8 need_barrier_sync = 0; + u8 need_barrier_sync = pool_get_will_expand (fib_entry_pool); vlib_main_t *vm = vlib_get_main(); ASSERT (vm->thread_index == 0); - pool_get_will_expand (fib_entry_pool, need_barrier_sync ); if (need_barrier_sync) vlib_worker_thread_barrier_sync (vm); |