diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-12-26 07:50:05 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-12-26 07:50:17 +0200 |
commit | 5b7974b82082637c835b181b105fc05193d127bf (patch) | |
tree | b89128bb7d8fc32f1aee3587b69df1e0781a454b /src/bp_sim.h | |
parent | 82b3ac03ffb239be5ac1fceb01d3f359576edf03 (diff) |
add --active-flows option to scale the active flows
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'src/bp_sim.h')
-rwxr-xr-x | src/bp_sim.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bp_sim.h b/src/bp_sim.h index 7f48601f..9cdfd30a 100755 --- a/src/bp_sim.h +++ b/src/bp_sim.h @@ -727,6 +727,7 @@ public: m_tw_buckets = 1024; m_tw_levels = 3; m_tw_bucket_time_sec = (20.0/1000000.0); + m_active_flows=0; } @@ -734,6 +735,7 @@ public: CPreviewMode preview; uint16_t m_tw_buckets; uint16_t m_tw_levels; + uint32_t m_active_flows; float m_factor; float m_mbuf_factor; float m_duration; @@ -3561,6 +3563,7 @@ public: public: void update_min_ipg(dsec_t min_ipg, dsec_t override_ipg); + void update_ipg_by_factor(double factor,CFlowYamlInfo * flow_info); void update_pcap_mode(); void Dump(FILE *fd); @@ -3712,6 +3715,8 @@ public: void Dump(FILE *fd); void getFlowStats(CFlowStats * stats); + void updateIpg(double factor); + public: CCapFileFlowInfo m_flow_info; CFlowYamlInfo * m_info; @@ -4100,6 +4105,8 @@ public: double GetCpuUtilRaw(); public: + /* update ipg in a way for */ + int update_active_flows(uint32_t active_flows); double get_total_kcps(); double get_total_pps(); double get_total_tx_bps(); |