diff options
author | imarom <imarom@cisco.com> | 2016-12-13 20:51:29 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-12-13 20:51:29 +0200 |
commit | d3bb77490d44500e91c90432c7313267aebaeaec (patch) | |
tree | 076692b6abcc6fe4c01919170c610237e9eec92c /src/stateless | |
parent | ac1c2d18f699c40b974d314df3db835ec26bc0bd (diff) |
minor fix (RX core sync time)
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/stateless')
-rw-r--r-- | src/stateless/rx/trex_stateless_rx_core.cpp | 1 | ||||
-rw-r--r-- | src/stateless/rx/trex_stateless_rx_port_mngr.cpp | 6 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/stateless/rx/trex_stateless_rx_core.cpp b/src/stateless/rx/trex_stateless_rx_core.cpp index 502af9c1..d27485de 100644 --- a/src/stateless/rx/trex_stateless_rx_core.cpp +++ b/src/stateless/rx/trex_stateless_rx_core.cpp @@ -211,6 +211,7 @@ void CRxCoreStateless::handle_work_stage() { if ( (now - sync_time_sec) > 0 ) { periodic_check_for_cp_messages(); + sync_time_sec = now + (1.0 / 1000); } if ( (now - tick_time_sec) > 0) { diff --git a/src/stateless/rx/trex_stateless_rx_port_mngr.cpp b/src/stateless/rx/trex_stateless_rx_port_mngr.cpp index 4c54a132..5aac1ea6 100644 --- a/src/stateless/rx/trex_stateless_rx_port_mngr.cpp +++ b/src/stateless/rx/trex_stateless_rx_port_mngr.cpp @@ -735,12 +735,6 @@ RXPortManager::create(const TRexPortAttr *port_attr, m_cpu_dp_u = cpu_util; m_num_crc_fix_bytes = crc_bytes_num; - /* if IPv4 is configured - add it to the grat service */ - uint32_t src_ipv4 = port_attr->get_src_ipv4(); - if (src_ipv4) { - m_src_addr.insert(COneIPv4Info(src_ipv4, 0, port_attr->get_src_mac(), m_port_id)); - } - /* init features */ m_latency.create(rfc2544, err_cntrs); m_server.create(m_port_id, io, &m_src_addr); |