@ -121,8 +121,11 @@ void FlowDisableFlowManagerThread(void)
/* flow manager thread(s) is/are a part of mgmt threads */
/* flow manager thread(s) is/are a part of mgmt threads */
tv = tv_root [ TVT_MGMT ] ;
tv = tv_root [ TVT_MGMT ] ;
while ( tv ! = NULL ) {
while ( tv ! = NULL )
if ( strncasecmp ( tv - > name , " FM " , 2 ) = = 0 ) {
{
if ( strncasecmp ( tv - > name , thread_name_flow_mgr ,
strlen ( thread_name_flow_mgr ) ) = = 0 )
{
TmThreadsSetFlag ( tv , THV_KILL ) ;
TmThreadsSetFlag ( tv , THV_KILL ) ;
cnt + + ;
cnt + + ;
@ -731,11 +734,12 @@ void FlowManagerThreadSpawn()
StatsRegisterGlobalCounter ( " flow.memuse " , FlowGetMemuse ) ;
StatsRegisterGlobalCounter ( " flow.memuse " , FlowGetMemuse ) ;
uint32_t u ;
uint32_t u ;
for ( u = 0 ; u < flowmgr_number ; u + + ) {
for ( u = 0 ; u < flowmgr_number ; u + + )
{
ThreadVars * tv_flowmgr = NULL ;
ThreadVars * tv_flowmgr = NULL ;
char name [ 32 ] = " " ;
char name [ 32 ] = " " ;
snprintf ( name , sizeof ( name ) , " FM%02u" , u + 1 ) ;
snprintf ( name , sizeof ( name ) , " %s#%02u" , thread_name_flow_mgr , u + 1 ) ;
tv_flowmgr = TmThreadCreateMgmtThreadByName ( SCStrdup ( name ) ,
tv_flowmgr = TmThreadCreateMgmtThreadByName ( SCStrdup ( name ) ,
" FlowManager " , 0 ) ;
" FlowManager " , 0 ) ;
@ -894,16 +898,12 @@ void FlowRecyclerThreadSpawn()
uint32_t u ;
uint32_t u ;
for ( u = 0 ; u < flowrec_number ; u + + ) {
for ( u = 0 ; u < flowrec_number ; u + + )
{
ThreadVars * tv_flowmgr = NULL ;
ThreadVars * tv_flowmgr = NULL ;
< < < < < < < HEAD
char name [ 32 ] ;
snprintf ( name , sizeof ( name ) , " FlowRecyclerThread%02u " , u + 1 ) ;
= = = = = = =
char name [ 32 ] = " " ;
char name [ 32 ] = " " ;
snprintf ( name , sizeof ( name ) , " FR%02u " , u + 1 ) ;
snprintf ( name , sizeof ( name ) , " %s#%02u " , thread_name_flow_rec , u + 1 ) ;
> > > > > > > Changed naming of flowmanager / recycler .
tv_flowmgr = TmThreadCreateMgmtThreadByName ( SCStrdup ( name ) ,
tv_flowmgr = TmThreadCreateMgmtThreadByName ( SCStrdup ( name ) ,
" FlowRecycler " , 0 ) ;
" FlowRecycler " , 0 ) ;
@ -956,8 +956,11 @@ void FlowDisableFlowRecyclerThread(void)
/* flow recycler thread(s) is/are a part of mgmt threads */
/* flow recycler thread(s) is/are a part of mgmt threads */
tv = tv_root [ TVT_MGMT ] ;
tv = tv_root [ TVT_MGMT ] ;
while ( tv ! = NULL ) {
while ( tv ! = NULL )
if ( strncasecmp ( tv - > name , " FR " , 2 ) = = 0 ) {
{
if ( strncasecmp ( tv - > name , thread_name_flow_rec ,
strlen ( thread_name_flow_rec ) ) = = 0 )
{
TmThreadsSetFlag ( tv , THV_KILL ) ;
TmThreadsSetFlag ( tv , THV_KILL ) ;
cnt + + ;
cnt + + ;