summaryrefslogtreecommitdiffstats
path: root/src/bp_sim.h
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-12-20 14:58:30 +0200
committerimarom <imarom@cisco.com>2016-12-20 14:58:52 +0200
commitabc0cb8755084ad00e0dc3421f307b0405f54176 (patch)
treeb3d0a060c694b29124496c3b26df6ee414d474de /src/bp_sim.h
parent211caa7b0018047c0ff5d94ac762b0799e995b7e (diff)
trex-312 ARP resolution does not work from console at virtual NICs
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/bp_sim.h')
-rwxr-xr-xsrc/bp_sim.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/bp_sim.h b/src/bp_sim.h
index 5d7df59d..c9e43ba3 100755
--- a/src/bp_sim.h
+++ b/src/bp_sim.h
@@ -323,7 +323,6 @@ public:
virtual void send_one_pkt(pkt_dir_t dir, rte_mbuf_t *m) {}
/* flush all pending packets into the stream */
virtual int flush_tx_queue(void)=0;
- virtual void handle_rx_queue(void) {};
/* update the source and destination mac-addr of a given mbuf by global database */
virtual int update_mac_addr_from_global_cfg(pkt_dir_t dir, uint8_t * p)=0;
/* translate port_id to the correct dir on the core */
@@ -3753,6 +3752,7 @@ public:
m_monitor.tickle();
}
+
/* return the dual port ID this thread is attached to in 4 ports configuration
there are 2 dual-ports
@@ -3858,9 +3858,13 @@ public:
return ( m_cpu_cp_u.GetVal());
}
+
+ bool check_msgs();
+
private:
- void check_msgs(void);
-
+
+ bool check_msgs_from_rx();
+
void handle_nat_msg(CGenNodeNatInfo * msg);
void handle_latency_pkt_msg(CGenNodeLatencyPktInfo * msg);
@@ -4269,4 +4273,7 @@ class CRXCoreIgnoreStat {
uint64_t m_tot_bytes;
};
+static_assert(sizeof(CGenNodeNatInfo) == sizeof(CGenNode), "sizeof(CGenNodeNatInfo) != sizeof(CGenNode)" );
+static_assert(sizeof(CGenNodeLatencyPktInfo) == sizeof(CGenNode), "sizeof(CGenNodeLatencyPktInfo) != sizeof(CGenNode)" );
+
#endif