]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow-manager: don't set cpu affinity twice
authorEric Leblond <eric@regit.org>
Fri, 20 Mar 2015 09:24:39 +0000 (10:24 +0100)
committerEric Leblond <eric@regit.org>
Wed, 1 Apr 2015 15:31:28 +0000 (17:31 +0200)
It is already set in the thread creation function.

src/flow-manager.c

index 338ddc896d6ce67de778a2d44ac35eb225c01898..b52220d153b507dc08d287dab0962c2627af58ba 100644 (file)
@@ -738,8 +738,6 @@ void FlowManagerThreadSpawn()
                 "FlowManager", 0);
         BUG_ON(tv_flowmgr == NULL);
 
-        TmThreadSetCPU(tv_flowmgr, MANAGEMENT_CPU_SET);
-
         if (tv_flowmgr == NULL) {
             printf("ERROR: TmThreadsCreate failed\n");
             exit(1);
@@ -900,8 +898,6 @@ void FlowRecyclerThreadSpawn()
                 "FlowRecycler", 0);
         BUG_ON(tv_flowmgr == NULL);
 
-        TmThreadSetCPU(tv_flowmgr, MANAGEMENT_CPU_SET);
-
         if (tv_flowmgr == NULL) {
             printf("ERROR: TmThreadsCreate failed\n");
             exit(1);