From e531530a67789f895360200fa9d5874d3dcd7511 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 19 Aug 2021 16:30:50 +0200 Subject: [PATCH] flow: add comment on flow handling --- src/flow-manager.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 */