flow: fix a debug assert

As the FlowBypassedTimeout function is interacting with the capture
method it is possible that the return changes between the call that
did trigger the timeout and the actual state (ie if packets arrive
in between the two calls). So we should not use the call to
FlowBypassedTimeout in the assert.
pull/6324/head
Eric Leblond 4 years ago committed by Victor Julien
parent 9c89bc80d0
commit cce7e4f4cb

@ -440,7 +440,7 @@ static void FlowManagerHashRowClearEvictedList(FlowManagerTimeoutThread *td,
f->next = NULL;
f->fb = NULL;
DEBUG_VALIDATE_BUG_ON(f->use_cnt > 0 || !FlowBypassedTimeout(f, ts, counters));
DEBUG_VALIDATE_BUG_ON(f->use_cnt > 0);
FlowQueuePrivateAppendFlow(&td->aside_queue, f);
/* flow is still locked in the queue */

Loading…
Cancel
Save