flow/recycler: minor code cleanups

pull/7533/head
Victor Julien 4 years ago committed by Victor Julien
parent 73138809e2
commit 633e6cf09e

@ -1050,13 +1050,11 @@ static TmEcode FlowRecyclerThreadDeinit(ThreadVars *t, void *data)
*/ */
static TmEcode FlowRecycler(ThreadVars *th_v, void *thread_data) static TmEcode FlowRecycler(ThreadVars *th_v, void *thread_data)
{ {
struct timeval ts;
uint64_t recycled_cnt = 0;
FlowRecyclerThreadData *ftd = (FlowRecyclerThreadData *)thread_data; FlowRecyclerThreadData *ftd = (FlowRecyclerThreadData *)thread_data;
BUG_ON(ftd == NULL); BUG_ON(ftd == NULL);
uint64_t recycled_cnt = 0;
struct timeval ts;
memset(&ts, 0, sizeof(ts)); memset(&ts, 0, sizeof(ts));
uint32_t fr_passes = 0;
while (1) while (1)
{ {
@ -1065,7 +1063,6 @@ static TmEcode FlowRecycler(ThreadVars *th_v, void *thread_data)
TmThreadTestThreadUnPaused(th_v); TmThreadTestThreadUnPaused(th_v);
TmThreadsUnsetFlag(th_v, THV_PAUSED); TmThreadsUnsetFlag(th_v, THV_PAUSED);
} }
fr_passes++;
SC_ATOMIC_ADD(flowrec_busy,1); SC_ATOMIC_ADD(flowrec_busy,1);
FlowQueuePrivate list = FlowQueueExtractPrivate(&flow_recycle_q); FlowQueuePrivate list = FlowQueueExtractPrivate(&flow_recycle_q);

Loading…
Cancel
Save