From: Eric Leblond Date: Thu, 19 Aug 2021 14:30:50 +0000 (+0200) Subject: flow: add comment on flow handling X-Git-Tag: suricata-7.0.0-beta1~1477 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e531530a67789f895360200fa9d5874d3dcd7511;p=thirdparty%2Fsuricata.git flow: add comment on flow handling --- diff --git a/src/flow-manager.c b/src/flow-manager.c index 2bbd3968fe..503785b4bf 100644 --- a/src/flow-manager.c +++ b/src/flow-manager.c @@ -334,14 +334,13 @@ static uint32_t ProcessAsideQueue(FlowManagerTimeoutThread *td, FlowTimeoutCount while ((f = FlowQueuePrivateGetFromTop(&td->aside_queue)) != NULL) { /* flow is still locked */ - if (f->proto == IPPROTO_TCP && - !(f->flags & FLOW_TIMEOUT_REASSEMBLY_DONE) && + if (f->proto == IPPROTO_TCP && !(f->flags & FLOW_TIMEOUT_REASSEMBLY_DONE) && #ifdef CAPTURE_OFFLOAD f->flow_state != FLOW_STATE_CAPTURE_BYPASSED && #endif f->flow_state != FLOW_STATE_LOCAL_BYPASSED && - FlowForceReassemblyNeedReassembly(f) == 1) - { + FlowForceReassemblyNeedReassembly(f) == 1) { + /* Send the flow to its thread */ FlowForceReassemblyForFlow(f); FLOWLOCK_UNLOCK(f); /* flow ownership is passed to the worker thread */