VOL-1150 A single threaded implementation for the OpenOLT driver
Stats collection is driven from the main thread.
Change-Id: I773a4aeb0e840f2a36895e39b999b2dcaf2adaa6
diff --git a/src/stats_collection.h b/src/stats_collection.h
index 6f892b7..0437634 100644
--- a/src/stats_collection.h
+++ b/src/stats_collection.h
@@ -8,7 +8,9 @@
#include <bal_model_types.h>
}
-void start_collecting_statistics();
+#define COLLECTION_PERIOD 15
+
+void init_stats();
void stop_collecting_statistics();
openolt::PortStatistics* get_default_port_statistics();
openolt::PortStatistics* collectPortStatistics(int intf_id, bcmbal_intf_type intf_type);
@@ -16,7 +18,7 @@
openolt::FlowStatistics* get_default_flow_statistics();
openolt::FlowStatistics* collectFlowStatistics(bcmbal_flow_id flow_id, bcmbal_flow_type flow_type);
#endif
-void* stats_collection(void* x);
+void* stats_collection();
void register_new_flow(bcmbal_flow_key key);