acl-plugin: multicore: send the interrupts to thread0 too 47/10447/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 7 Feb 2018 15:21:48 +0000 (16:21 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Wed, 7 Feb 2018 19:16:02 +0000 (19:16 +0000)
The thread0 in some configurations can handle the traffic.
Some of the previous fixes accomodated for that, but
the interrupt sending for connection clearing
was not adapted to that, resulting in a deadlock
during clearing of all connections...

Change-Id: I32b4c7bac09c91c22b796baab843bdaf41f7045c
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/fa_node.c

index fb23a35..3ac45c2 100644 (file)
@@ -1516,7 +1516,7 @@ send_interrupts_to_workers (vlib_main_t * vm, acl_main_t *am)
   int i;
   /* Can't use vec_len(am->per_worker_data) since the threads might not have come up yet; */
   int n_threads = vec_len(vlib_mains);
-  for (i = n_threads > 1 ? 1 : 0; i < n_threads; i++) {
+  for (i = 0; i < n_threads; i++) {
     send_one_worker_interrupt(vm, am, i);
   }
 }