summaryrefslogtreecommitdiffstats
path: root/src/stateless/dp/trex_stateless_dp_core.h
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2015-11-11 15:37:46 +0200
committerHanoh Haim <hhaim@cisco.com>2015-11-11 15:37:46 +0200
commitcc352e04fd45913132f3e1ddc86d88571c926879 (patch)
tree7d295ea1a2d68ec7587781a7567d3e17997d4eba /src/stateless/dp/trex_stateless_dp_core.h
parentd04fb533c0843ebcd3eac5fbefa6f418582db7fc (diff)
add first stl test and cleanup valgrind
Diffstat (limited to 'src/stateless/dp/trex_stateless_dp_core.h')
-rw-r--r--src/stateless/dp/trex_stateless_dp_core.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stateless/dp/trex_stateless_dp_core.h b/src/stateless/dp/trex_stateless_dp_core.h
index f4dbad08..a23e81c9 100644
--- a/src/stateless/dp/trex_stateless_dp_core.h
+++ b/src/stateless/dp/trex_stateless_dp_core.h
@@ -45,6 +45,7 @@ public:
TrexStatelessDpCore() {
m_thread_id = 0;
m_core = NULL;
+ m_duration = -1;
}
/**
@@ -61,6 +62,10 @@ public:
*/
void start();
+
+ /* exit after batch of commands */
+ void run_once();
+
/**
* dummy traffic creator
*
@@ -126,6 +131,9 @@ private:
*/
void handle_cp_msg(TrexStatelessCpToDpMsgBase *msg);
+ void add_duration(uint8_t port_id,
+ double duration);
+
void add_cont_stream(uint8_t dir,
double isg,
double pps,
@@ -142,6 +150,8 @@ private:
/* pointer to the main object */
CFlowGenListPerThread *m_core;
+
+ double m_duration;
};
#endif /* __TREX_STATELESS_DP_CORE_H__ */