MT#55283 fix sequencer insert bug

Closes #2220

Change-Id: I7e9936dbe67abeb3c88927d9cb5800d034ce75e4
(cherry picked from commit 9defebeac5)
mr26.2
Richard Fuchs 3 weeks ago
parent 4d4971588e
commit 189baf59bd

@ -603,9 +603,11 @@ seq_ok:;
if (ps->a_idx != idx)
ret = 2; // indicates an out-of-order packet
// if not set
if (ps->a_nxt == -1u)
ps->a_nxt = idx;
// if not set and this is the first packet
if (ps->a_nxt == -1u) {
if (ret != 2)
ps->a_nxt = idx;
}
// or if new idx is less than a_nxt
else if ((ps->a_nxt - ps->a_idx) % G_N_ELEMENTS(ps->packets)
> (idx - ps->a_idx) % G_N_ELEMENTS(ps->packets))

Loading…
Cancel
Save