From ffaa6fd004c93d1c8307fe70d4e702624a346ab4 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Tue, 29 Mar 2016 15:01:39 +0300 Subject: flow stat - track flow states --- src/flow_stat.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/flow_stat.h') diff --git a/src/flow_stat.h b/src/flow_stat.h index ea33062d..b20a8b31 100644 --- a/src/flow_stat.h +++ b/src/flow_stat.h @@ -200,10 +200,12 @@ class CFlowStatRuleMgr { CFlowStatRuleMgr(); ~CFlowStatRuleMgr(); friend std::ostream& operator<<(std::ostream& os, const CFlowStatRuleMgr& cf); - int add_stream(const TrexStream * stream); - int del_stream(const TrexStream * stream); - int start_stream(TrexStream * stream, uint16_t &ret_hw_id); - int stop_stream(const TrexStream * stream); + void copy_state(TrexStream * from, TrexStream * to); + void init_stream(TrexStream * stream); + int add_stream(TrexStream * stream); + int del_stream(TrexStream * stream); + int start_stream(TrexStream * stream); + int stop_stream(TrexStream * stream); int get_active_pgids(flow_stat_active_t &result); bool dump_json(std::string & json, bool baseline); -- cgit 1.2.3-korg