From 8341f76fd1cd4351961cd8161cfed2814fc55103 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Wed, 3 Jun 2020 08:05:15 -0400 Subject: fib: add barrier sync, pool/vector expand cases load_balance_alloc_i(...) is not thread safe when the load_balance_pool or combined counter vectors expand. Type: fix Signed-off-by: Dave Barach Change-Id: I7f295ed77350d1df0434d5ff461eedafe79131de --- src/vlib/counter.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vlib/counter.h') diff --git a/src/vlib/counter.h b/src/vlib/counter.h index 7c9094727e2..8a5aed4c194 100644 --- a/src/vlib/counter.h +++ b/src/vlib/counter.h @@ -314,6 +314,9 @@ void vlib_free_simple_counter (vlib_simple_counter_main_t * cm); void vlib_validate_combined_counter (vlib_combined_counter_main_t * cm, u32 index); +int vlib_validate_combined_counter_will_expand + (vlib_combined_counter_main_t * cm, u32 index); + void vlib_free_combined_counter (vlib_combined_counter_main_t * cm); /** Obtain the number of simple or combined counters allocated. -- cgit 1.2.3-korg