From abc0cb8755084ad00e0dc3421f307b0405f54176 Mon Sep 17 00:00:00 2001 From: imarom Date: Tue, 20 Dec 2016 14:58:30 +0200 Subject: trex-312 ARP resolution does not work from console at virtual NICs Signed-off-by: imarom --- src/bp_sim.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/bp_sim.h') 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 -- cgit 1.2.3-korg