From 9464519d16d203f0d0ca33e8079c5735eb1c4c36 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Thu, 1 Dec 2016 10:19:01 +0200 Subject: take care of extra Ethernet FCS bytes handed to software in e1000 Signed-off-by: Ido Barnea --- src/stateless/rx/trex_stateless_rx_core.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/stateless/rx/trex_stateless_rx_core.cpp') diff --git a/src/stateless/rx/trex_stateless_rx_core.cpp b/src/stateless/rx/trex_stateless_rx_core.cpp index 50dc04f4..df5e8e8e 100644 --- a/src/stateless/rx/trex_stateless_rx_core.cpp +++ b/src/stateless/rx/trex_stateless_rx_core.cpp @@ -69,6 +69,7 @@ void CRFC2544Info::export_data(rfc2544_info_t_ &obj) { void CRxCoreStateless::create(const CRxSlCfg &cfg) { m_capture = false; m_max_ports = cfg.m_max_ports; + m_num_crc_fix_bytes = cfg.m_num_crc_fix_bytes; CMessagingManager * cp_rx = CMsgIns::Ins()->getCpRx(); @@ -231,6 +232,8 @@ void CRxCoreStateless::capture_pkt(rte_mbuf_t *m) { } +#if 0 +//??????? remove // In VM setup, handle packets coming as messages from DP cores. void CRxCoreStateless::handle_rx_queue_msgs(uint8_t thread_id, CNodeRing * r) { while ( true ) { @@ -269,14 +272,11 @@ void CRxCoreStateless::handle_rx_queue_msgs(uint8_t thread_id, CNodeRing * r) { } int CRxCoreStateless::process_all_pending_pkts(bool flush_rx) { - int total_pkts = 0; for (int i = 0; i < m_max_ports; i++) { total_pkts += m_rx_port_mngr[i].process_all_pending_pkts(flush_rx); } - return total_pkts; - } -- cgit 1.2.3-korg