summaryrefslogtreecommitdiffstats
path: root/src/bp_sim.cpp
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2017-02-16 12:58:18 +0200
committerHanoh Haim <hhaim@cisco.com>2017-02-16 17:15:32 +0200
commitc22bab89dd44db65a9359cf7a325002cee1925d6 (patch)
tree85cc0e5a481d09304c8500c364b1c59d3d26892b /src/bp_sim.cpp
parentc65f218096d53d736a43571e68020ad5010f6d21 (diff)
support more than 255 client/server pools
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'src/bp_sim.cpp')
-rwxr-xr-xsrc/bp_sim.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp
index d3c8abbd..8a8292a6 100755
--- a/src/bp_sim.cpp
+++ b/src/bp_sim.cpp
@@ -3615,7 +3615,7 @@ FORCE_NO_INLINE void CFlowGenListPerThread::handler_defer_job(CGenNode *p){
void CFlowGenListPerThread::defer_client_port_free(bool is_tcp,
uint32_t c_idx,
uint16_t port,
- uint8_t c_pool_idx,
+ pool_index_t c_pool_idx,
CTupleGeneratorSmart * gen){
/* free is not required in this case */
if (!gen->IsFreePortRequired(c_pool_idx) ){
@@ -4510,7 +4510,7 @@ uint32_t CFlowGenListPerThread::getDualPortId(){
return ( ::getDualPortId(m_thread_id) );
}
-double CFlowGenListPerThread::get_longest_flow(uint8_t pool_idx, bool is_client){
+double CFlowGenListPerThread::get_longest_flow(pool_index_t pool_idx, bool is_client){
int i;
double longest_flow = 0.0;
for (i=0;i<(int)m_cap_gen.size(); i++) {
@@ -4545,7 +4545,7 @@ double CFlowGenListPerThread::get_longest_flow(){
return longest_flow;
}
-double CFlowGenListPerThread::get_total_kcps(uint8_t pool_idx, bool is_client){
+double CFlowGenListPerThread::get_total_kcps(pool_index_t pool_idx, bool is_client){
int i;
double total=0.0;
for (i=0; i<(int)m_cap_gen.size(); i++) {