diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-06-05 10:44:40 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-06-05 10:44:40 +0300 |
commit | 6d5144308445cb02373056668e3df5d962dc424c (patch) | |
tree | 41be395e6a06a0cb1cfe1fce070c536c0687d8de /src/bp_sim.cpp | |
parent | e0ca7a226fd37023ff8a9d80e46403a34492c1d7 (diff) | |
parent | 0400a9503137f9179eb92f15d4e3b985ffad562e (diff) |
Merge branch 'master' into cpu_per_core
Diffstat (limited to 'src/bp_sim.cpp')
-rwxr-xr-x | src/bp_sim.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp index cb70c572..dc41c8f2 100755 --- a/src/bp_sim.cpp +++ b/src/bp_sim.cpp @@ -24,6 +24,8 @@ limitations under the License. #include "utl_json.h" #include "utl_yaml.h" #include "msg_manager.h" +#include "trex_watchdog.h" + #include <common/basic_utils.h> #include <trex_stream_node.h> @@ -3299,6 +3301,9 @@ bool CFlowGenListPerThread::Create(uint32_t thread_id, m_max_threads=max_threads; m_thread_id=thread_id; + m_watchdog = NULL; + m_watchdog_handle = -1; + m_cpu_cp_u.Create(&m_cpu_dp_u); uint32_t socket_id=rte_lcore_to_socket_id(m_core_id); @@ -3874,6 +3879,10 @@ void CNodeGenerator::handle_flow_pkt(CGenNode *node, CFlowGenListPerThread *thre } void CNodeGenerator::handle_flow_sync(CGenNode *node, CFlowGenListPerThread *thread, bool &exit_scheduler) { + + /* tickle the watchdog */ + thread->tickle(); + /* flow sync message is a sync point for time */ thread->m_cur_time_sec = node->m_time; |