diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-05-10 17:27:07 +0300 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-05-10 17:27:07 +0300 |
commit | 996f2451dba01f534420418eaac2856510682757 (patch) | |
tree | 016d58d6e97c0fc22d0577f52b44530f5bf670fb /src/stateless/dp/trex_stateless_dp_core.cpp | |
parent | 4d319010eaeb17cce9af55ef00feb71a6930c931 (diff) |
refactor the schduler to be with minimum TSC instructions
Diffstat (limited to 'src/stateless/dp/trex_stateless_dp_core.cpp')
-rw-r--r-- | src/stateless/dp/trex_stateless_dp_core.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stateless/dp/trex_stateless_dp_core.cpp b/src/stateless/dp/trex_stateless_dp_core.cpp index 7e9bec1d..13bf5a5d 100644 --- a/src/stateless/dp/trex_stateless_dp_core.cpp +++ b/src/stateless/dp/trex_stateless_dp_core.cpp @@ -904,6 +904,11 @@ TrexStatelessDpCore::start_traffic(TrexStreamsCompiledObj *obj, lp_port->m_active_streams = 0; lp_port->set_event_id(event_id); + /* update cur time */ + if ( CGlobalInfo::is_realtime() ){ + m_core->m_cur_time_sec = now_sec() + SCHD_OFFSET_DTIME ; + } + /* no nodes in the list */ assert(lp_port->m_active_nodes.size()==0); |