From: Victor Julien Date: Wed, 19 Oct 2016 10:50:47 +0000 (+0200) Subject: flow-manager: cleanups and comment improvements X-Git-Tag: suricata-3.2RC1~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d1d618a668df1337cf1be268c640f5687f93fc6f;p=thirdparty%2Fsuricata.git flow-manager: cleanups and comment improvements --- diff --git a/src/flow-manager.c b/src/flow-manager.c index dece557ea1..a1e78b82bb 100644 --- a/src/flow-manager.c +++ b/src/flow-manager.c @@ -258,8 +258,8 @@ static int FlowManagerFlowTimeout(const Flow *f, enum FlowState state, struct ti */ static int FlowManagerFlowTimedOut(Flow *f, struct timeval *ts) { - /** never prune a flow that is used by a packet or stream msg - * we are currently processing in one of the threads */ + /* never prune a flow that is used by a packet we + * are currently processing in one of the threads */ if (SC_ATOMIC_GET(f->use_cnt) > 0) { return 0; } @@ -369,14 +369,10 @@ static uint32_t FlowManagerHashRowTimeout(Flow *f, struct timeval *ts, f->flow_end_flags |= FLOW_END_FLAG_EMERGENCY; f->flow_end_flags |= FLOW_END_FLAG_TIMEOUT; -// FlowClearMemory (f, f->protomap); - /* no one is referring to this flow, use_cnt 0, removed from hash - * so we can unlock it and move it back to the spare queue. */ + * so we can unlock it and pass it to the flow recycler */ FLOWLOCK_UNLOCK(f); FlowEnqueue(&flow_recycle_q, f); - /* move to spare list */ -// FlowMoveToSpare(f); cnt++;