From d9cc63306748f0ef954667753441ebc3367708e0 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Tue, 17 May 2016 14:01:20 +0300 Subject: small corrections to counters --- src/stateless/rx/trex_stateless_rx_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 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 463fa7d3..39ecb4f2 100644 --- a/src/stateless/rx/trex_stateless_rx_core.cpp +++ b/src/stateless/rx/trex_stateless_rx_core.cpp @@ -154,8 +154,8 @@ void CRxCoreStateless::handle_rx_pkt(CLatencyManagerPerPortStl *lp, rte_mbuf_t * m_rfc2544[hw_id].out_of_order += 1; // We thought it was lost, but it was just out of order m_rfc2544[hw_id].seq_err -= 1; - m_rfc2544[hw_id].seq_err_events_too_low++; } + m_rfc2544[hw_id].seq_err_events_too_low++; } } else { if (unlikely (m_rfc2544[hw_id].seq - seq > 100000)) { @@ -166,8 +166,8 @@ void CRxCoreStateless::handle_rx_pkt(CLatencyManagerPerPortStl *lp, rte_mbuf_t * m_rfc2544[hw_id].out_of_order += 1; // We thought it was lost, but it was just out of order m_rfc2544[hw_id].seq_err -= 1; - m_rfc2544[hw_id].seq_err_events_too_low++; } + m_rfc2544[hw_id].seq_err_events_too_low++; } else { // seq > m_rfc2544[hw_id].seq. Assuming lost packets m_rfc2544[hw_id].seq_err += seq - m_rfc2544[hw_id].seq; -- cgit 1.2.3-korg