summaryrefslogtreecommitdiffstats
path: root/src/flow_stat.cpp
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-03-07 15:58:03 +0200
committerIdo Barnea <ibarnea@cisco.com>2016-03-07 15:58:31 +0200
commitccfb88c91c50893bf3d43b67f48ac46e9a252f64 (patch)
tree78b3c280eb4748c561db4b6947f66ac76a72893c /src/flow_stat.cpp
parent29c78819b903a2933e8ba106faa5ba5745eb527e (diff)
Added get_active_pgids
Diffstat (limited to 'src/flow_stat.cpp')
-rw-r--r--src/flow_stat.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/flow_stat.cpp b/src/flow_stat.cpp
index 700c584b..4d23dc60 100644
--- a/src/flow_stat.cpp
+++ b/src/flow_stat.cpp
@@ -599,6 +599,16 @@ int CFlowStatRuleMgr::stop_stream(const TrexStream * stream) {
return 0;
}
+int CFlowStatRuleMgr::get_active_pgids(flow_stat_active_t &result) {
+ flow_stat_user_id_map_it_t it;
+
+ for (it = m_user_id_map.begin(); it != m_user_id_map.end(); it++) {
+ result.insert(it->first);
+ }
+
+ return 0;
+}
+
// return false if no counters changed since last run. true otherwise
bool CFlowStatRuleMgr::dump_json(std::string & json) {
uint64_t rx_stats[MAX_FLOW_STATS];