From 233e4681830bc2a9cd40deb4b5909b4e310d1a2a Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Thu, 16 May 2019 15:01:34 +0200 Subject: stats: support multiple works for error counters The current code only allowed access to the main thread error counters. That is not so useful for a multi worker instance. No return a vector indexed by thread of counter_t values. Type: fix Change-Id: Ie322c8889c0c8175e1116e71de04a2cf453b9ed7 Signed-off-by: Ole Troan --- src/vlib/counter.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/vlib/counter.c') diff --git a/src/vlib/counter.c b/src/vlib/counter.c index 5b73d5fa21a..faf106942b7 100644 --- a/src/vlib/counter.c +++ b/src/vlib/counter.c @@ -38,6 +38,7 @@ */ #include +#include void vlib_clear_simple_counters (vlib_simple_counter_main_t * cm) @@ -74,19 +75,6 @@ vlib_clear_combined_counters (vlib_combined_counter_main_t * cm) } } -void *vlib_stats_push_heap (void *) __attribute__ ((weak)); -void * -vlib_stats_push_heap (void *unused) -{ - return 0; -}; - -void vlib_stats_pop_heap (void *, void *, u32, int) __attribute__ ((weak)); -void -vlib_stats_pop_heap (void *notused, void *notused2, u32 i, int type) -{ -}; - void vlib_validate_simple_counter (vlib_simple_counter_main_t * cm, u32 index) { -- cgit 1.2.3-korg