minor fix (RX core sync time) 04/4304/1
authorimarom <[email protected]>
Tue, 13 Dec 2016 18:51:29 +0000 (20:51 +0200)
committerimarom <[email protected]>
Tue, 13 Dec 2016 18:51:29 +0000 (20:51 +0200)
Signed-off-by: imarom <[email protected]>
src/bp_sim.h
src/stateless/rx/trex_stateless_rx_core.cpp
src/stateless/rx/trex_stateless_rx_port_mngr.cpp

index 00699cd..5d7df59 100755 (executable)
@@ -4240,6 +4240,7 @@ inline  pkt_dir_t CGenNode::cur_interface_dir(){
     }
 }
 
+/* Itay: move this to a better place (common for RX STL and RX STF) */
 class CRXCoreIgnoreStat {
     friend class CCPortLatency;
     friend class CLatencyManager;
index 502af9c..d27485d 100644 (file)
@@ -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) {
index 4c54a13..5aac1ea 100644 (file)
@@ -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);