Code Review
/
trex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
963494b
)
fix trex351. Small fix to how we handle late latency stream packets
author
Ido Barnea
<
[email protected]
>
Sun, 19 Feb 2017 15:14:50 +0000
(17:14 +0200)
committer
Ido Barnea
<
[email protected]
>
Sun, 19 Feb 2017 15:15:11 +0000
(17:15 +0200)
Signed-off-by: Ido Barnea <
[email protected]
>
src/stateless/rx/trex_stateless_rx_core.cpp
patch
|
blob
|
history
diff --git
a/src/stateless/rx/trex_stateless_rx_core.cpp
b/src/stateless/rx/trex_stateless_rx_core.cpp
index
00c1808
..
b75b0e8
100644
(file)
--- 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() {