summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2017-02-19 17:14:50 +0200
committerIdo Barnea <ibarnea@cisco.com>2017-02-19 17:15:11 +0200
commit3e8d1108353ab50f400799581d1ced1df9f37f9f (patch)
tree3c77e5d9acc63beb0b7b4ab4e83b5fe47d18cd71 /src
parent963494b8213ab0d5f869cb2eb6f6c188e8858790 (diff)
fix trex351. Small fix to how we handle late latency stream packets
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/stateless/rx/trex_stateless_rx_core.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/stateless/rx/trex_stateless_rx_core.cpp b/src/stateless/rx/trex_stateless_rx_core.cpp
index 00c18082..b75b0e8f 100644
--- a/src/stateless/rx/trex_stateless_rx_core.cpp
+++ b/src/stateless/rx/trex_stateless_rx_core.cpp
@@ -38,8 +38,10 @@ void CRFC2544Info::create() {
// after calling stop, packets still arriving will be considered error
void CRFC2544Info::stop() {
- m_prev_flow_seq = m_exp_flow_seq;
- m_exp_flow_seq = FLOW_STAT_PAYLOAD_INITIAL_FLOW_SEQ;
+ if (m_exp_flow_seq != FLOW_STAT_PAYLOAD_INITIAL_FLOW_SEQ) {
+ m_prev_flow_seq = m_exp_flow_seq;
+ m_exp_flow_seq = FLOW_STAT_PAYLOAD_INITIAL_FLOW_SEQ;
+ }
}
void CRFC2544Info::reset() {