FD.io VPP  v21.06-1-gbb7418cf9
Vector Packet Processing
threads.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef included_vlib_threads_h
16 #define included_vlib_threads_h
17 
18 #include <vlib/main.h>
19 #include <vppinfra/callback.h>
20 #include <linux/sched.h>
21 
22 void vlib_set_thread_name (char *name);
23 
24 /* arg is actually a vlib__thread_t * */
25 typedef void (vlib_thread_function_t) (void *arg);
26 
28 {
29  /* constructor generated list of thread registrations */
31 
32  /* config parameters */
33  char *name;
34  char *short_name;
41 
42  /* All threads of this type run on pthreads */
47 
48 /*
49  * Frames have their cpu / vlib_main_t index in the low-order N bits
50  * Make VLIB_MAX_CPUS a power-of-two, please...
51  */
52 
53 #ifndef VLIB_MAX_CPUS
54 #define VLIB_MAX_CPUS 256
55 #endif
56 
57 #if VLIB_MAX_CPUS > CLIB_MAX_MHEAPS
58 #error Please increase number of per-cpu mheaps
59 #endif
60 
61 #define VLIB_CPU_MASK (VLIB_MAX_CPUS - 1) /* 0x3f, max */
62 #define VLIB_OFFSET_MASK (~VLIB_CPU_MASK)
63 
64 #define VLIB_LOG2_THREAD_STACK_SIZE (21)
65 #define VLIB_THREAD_STACK_SIZE (1<<VLIB_LOG2_THREAD_STACK_SIZE)
66 
67 typedef enum
68 {
71 
72 typedef struct
73 {
74  CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
75  volatile u32 valid;
79 
80  /* 256 * 4 = 1024 bytes, even mult of cache line size */
81  u32 buffer_index[VLIB_FRAME_SIZE];
82 }
84 
85 typedef struct
86 {
87  /* First cache line */
88  CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
89  volatile u32 *wait_at_barrier;
91 
92  /* Second Cache Line */
93  CLIB_CACHE_LINE_ALIGN_MARK (cacheline1);
94  void *thread_mheap;
96  void (*thread_function) (void *);
105  const char *barrier_caller;
106  const char *barrier_context;
108 
109  long lwp;
110  int cpu_id;
111  int core_id;
112  int numa_id;
113  pthread_t thread_id;
115 
117 
118 typedef struct
119 {
120  /* enqueue side */
121  CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
122  volatile u64 tail;
124 
125  /* dequeue side */
126  CLIB_CACHE_LINE_ALIGN_MARK (cacheline1);
127  volatile u64 head;
130 
131  /* dequeue hint to enqueue side */
132  CLIB_CACHE_LINE_ALIGN_MARK (cacheline2);
133  volatile u64 head_hint;
134 
135  /* read-only, constant, shared */
136  CLIB_CACHE_LINE_ALIGN_MARK (cacheline3);
139 }
141 
142 typedef struct
143 {
147 
148 typedef struct
149 {
153 
156 
157  /* for frame queue tracing */
161 
162 typedef struct
163 {
168 
169 /* Called early, in thread 0's context */
171 
172 int vlib_frame_queue_enqueue (vlib_main_t * vm, u32 node_runtime_index,
173  u32 frame_queue_index, vlib_frame_t * frame,
174  vlib_frame_queue_msg_type_t type);
175 
177 
178 void vlib_create_worker_threads (vlib_main_t * vm, int n,
179  void (*thread_function) (void *));
180 
183 
184 /* Check for a barrier sync request every 30ms */
185 #define BARRIER_SYNC_DELAY (0.030000)
186 
187 #if CLIB_DEBUG > 0
188 /* long barrier timeout, for gdb... */
189 #define BARRIER_SYNC_TIMEOUT (600.1)
190 #else
191 #define BARRIER_SYNC_TIMEOUT (1.0)
192 #endif
193 
194 #define vlib_worker_thread_barrier_sync(X) {vlib_worker_thread_barrier_sync_int(X, __FUNCTION__);}
195 
197  const char *func_name);
202 /**
203  * Wait until each of the workers has been once around the track
204  */
205 void vlib_worker_wait_one_loop (void);
206 
209 {
210  return __os_thread_index;
211 }
212 
213 always_inline void
215 {
216  if (CLIB_DEBUG > 0)
217  {
218  if (vlib_get_thread_index ())
219  fformat (stderr, "%s: SMP unsafe warning...\n", __FUNCTION__);
220  }
221 }
222 
223 always_inline int
224 __foreach_vlib_main_helper (vlib_main_t *ii, vlib_main_t **p)
225 {
226  vlib_main_t *vm;
227  u32 index = ii - (vlib_main_t *) 0;
228 
229  if (index >= vec_len (vlib_global_main.vlib_mains))
230  return 0;
231 
232  *p = vm = vlib_global_main.vlib_mains[index];
233  ASSERT (index == 0 || vm->parked_at_barrier == 1);
234  return 1;
235 }
236 
237 #define foreach_vlib_main() \
238  for (vlib_main_t *ii = 0, *this_vlib_main; \
239  __foreach_vlib_main_helper (ii, &this_vlib_main); ii++) \
240  if (this_vlib_main)
241 
242 #define foreach_sched_policy \
243  _(SCHED_OTHER, OTHER, "other") \
244  _(SCHED_BATCH, BATCH, "batch") \
245  _(SCHED_IDLE, IDLE, "idle") \
246  _(SCHED_FIFO, FIFO, "fifo") \
247  _(SCHED_RR, RR, "rr")
248 
249 typedef enum
250 {
251 #define _(v,f,s) SCHED_POLICY_##f = v,
253 #undef _
256 
257 typedef struct
258 {
259  clib_error_t *(*vlib_launch_thread_cb) (void *fp, vlib_worker_thread_t * w,
260  unsigned cpu_id);
261  clib_error_t *(*vlib_thread_set_lcore_cb) (u32 thread, u16 cpu);
262 } vlib_thread_callbacks_t;
263 
264 typedef struct
265 {
266  /* Link list of registrations, built by constructors */
268 
269  /* Vector of registrations, w/ non-data-structure clones at the top */
271 
273 
275 
276  /*
277  * Launch all threads as pthreads,
278  * not eal_rte_launch (strict affinity) threads
279  */
281 
282  /* Number of vlib_main / vnet_main clones */
284 
285  /* Number of thread stacks to create */
287 
288  /* Number of pthreads */
290 
291  /* Number of threads */
293 
294  /* Number of cores to skip, must match the core mask */
296 
297  /* Thread prefix name */
299 
300  /* main thread lcore */
302 
303  /* Bitmap of available CPU cores */
305 
306  /* Bitmap of available CPU sockets (NUMA nodes) */
308 
309  /* Worker handoff queues */
311 
312  /* worker thread initialization barrier */
314 
315  /* scheduling policy */
317 
318  /* scheduling policy priority */
320 
321  /* callbacks */
322  vlib_thread_callbacks_t cb;
324 
325  /* NUMA-bound heap size */
327 
329 
331 
332 #include <vlib/global_funcs.h>
333 
334 #define VLIB_REGISTER_THREAD(x,...) \
335  __VA_ARGS__ vlib_thread_registration_t x; \
336 static void __vlib_add_thread_registration_##x (void) \
337  __attribute__((__constructor__)) ; \
338 static void __vlib_add_thread_registration_##x (void) \
339 { \
340  vlib_thread_main_t * tm = &vlib_thread_main; \
341  x.next = tm->next; \
342  tm->next = &x; \
343 } \
344 static void __vlib_rm_thread_registration_##x (void) \
345  __attribute__((__destructor__)) ; \
346 static void __vlib_rm_thread_registration_##x (void) \
347 { \
348  vlib_thread_main_t * tm = &vlib_thread_main; \
349  VLIB_REMOVE_FROM_LINKED_LIST (tm->next, &x, next); \
350 } \
351 __VA_ARGS__ vlib_thread_registration_t x
352 
355 {
356  return vlib_thread_main.n_vlib_mains - 1;
357 }
358 
361 {
362  return worker_index + 1;
363 }
364 
367 {
368  return thread_index - 1;
369 }
370 
373 {
374  return vlib_get_thread_index () - 1;
375 }
376 
377 static inline void
379 {
380  if (PREDICT_FALSE (*vlib_worker_threads->wait_at_barrier))
381  {
383  vlib_main_t *vm = vlib_get_main ();
384  u32 thread_index = vm->thread_index;
385  f64 t = vlib_time_now (vm);
386 
389  vm->clib_time.last_cpu_time, 0 /* enter */ );
390 
391  if (PREDICT_FALSE (vlib_worker_threads->barrier_elog_enabled))
392  {
393  vlib_worker_thread_t *w = vlib_worker_threads + thread_index;
394  /* *INDENT-OFF* */
395  ELOG_TYPE_DECLARE (e) = {
396  .format = "barrier-wait-thread-%d",
397  .format_args = "i4",
398  };
399  /* *INDENT-ON* */
400 
401  struct
402  {
404  } __clib_packed *ed;
405 
407  ed->thread_index = thread_index;
408  }
409 
410  if (CLIB_DEBUG > 0)
411  {
412  vm = vlib_get_main ();
413  vm->parked_at_barrier = 1;
414  }
415  clib_atomic_fetch_add (vlib_worker_threads->workers_at_barrier, 1);
416  while (*vlib_worker_threads->wait_at_barrier)
417  ;
418 
419  /*
420  * Recompute the offset from thread-0 time.
421  * Note that vlib_time_now adds vm->time_offset, so
422  * clear it first. Save the resulting idea of "now", to
423  * see how well we're doing. See show_clock_command_fn(...)
424  */
425  {
426  f64 now;
427  vm->time_offset = 0.0;
428  now = vlib_time_now (vm);
431  }
432 
433  if (CLIB_DEBUG > 0)
434  vm->parked_at_barrier = 0;
435  clib_atomic_fetch_add (vlib_worker_threads->workers_at_barrier, -1);
436 
437  if (PREDICT_FALSE (*vlib_worker_threads->node_reforks_required))
438  {
439  if (PREDICT_FALSE (vlib_worker_threads->barrier_elog_enabled))
440  {
441  t = vlib_time_now (vm) - t;
442  vlib_worker_thread_t *w = vlib_worker_threads + thread_index;
443  /* *INDENT-OFF* */
444  ELOG_TYPE_DECLARE (e) = {
445  .format = "barrier-refork-thread-%d",
446  .format_args = "i4",
447  };
448  /* *INDENT-ON* */
449 
450  struct
451  {
453  } __clib_packed *ed;
454 
456  w->elog_track);
457  ed->thread_index = thread_index;
458  }
459 
461  clib_atomic_fetch_add (vlib_worker_threads->node_reforks_required,
462  -1);
463  while (*vlib_worker_threads->node_reforks_required)
464  ;
465  }
466  if (PREDICT_FALSE (vlib_worker_threads->barrier_elog_enabled))
467  {
468  t = vlib_time_now (vm) - t;
469  vlib_worker_thread_t *w = vlib_worker_threads + thread_index;
470  /* *INDENT-OFF* */
471  ELOG_TYPE_DECLARE (e) = {
472  .format = "barrier-released-thread-%d: %dus",
473  .format_args = "i4i4",
474  };
475  /* *INDENT-ON* */
476 
477  struct
478  {
480  u32 duration;
481  } __clib_packed *ed;
482 
484  ed->thread_index = thread_index;
485  ed->duration = (int) (1000000.0 * t);
486  }
487 
490  vm->clib_time.last_cpu_time, 1 /* leave */ );
491  }
492 }
493 
496 {
497  vlib_main_t *vm;
499  ASSERT (worker_index < tm->n_vlib_mains - 1);
500  vm = vlib_get_main_by_index (worker_index + 1);
501  ASSERT (vm);
502  return vm;
503 }
504 
505 static inline u8
507 {
508  return (!vlib_num_workers ()
509  || ((vlib_get_thread_index () == 0
510  && vlib_worker_threads->wait_at_barrier[0])));
511 }
512 
513 static inline void
515 {
517  hf->valid = 1;
518 }
519 
520 static inline vlib_frame_queue_elt_t *
521 vlib_get_frame_queue_elt (u32 frame_queue_index, u32 index)
522 {
523  vlib_frame_queue_t *fq;
527  vec_elt_at_index (tm->frame_queue_mains, frame_queue_index);
528  u64 new_tail;
529 
530  fq = fqm->vlib_frame_queues[index];
531  ASSERT (fq);
532 
533  new_tail = clib_atomic_add_fetch (&fq->tail, 1);
534 
535  /* Wait until a ring slot is available */
536  while (new_tail >= fq->head_hint + fq->nelts)
538 
539  elt = fq->elts + (new_tail & (fq->nelts - 1));
540 
541  /* this would be very bad... */
542  while (elt->valid)
543  ;
544 
546  elt->last_n_vectors = elt->n_vectors = 0;
547 
548  return elt;
549 }
550 
551 static inline vlib_frame_queue_t *
553  u32 index,
554  u32 queue_hi_thresh,
556  handoff_queue_by_worker_index)
557 {
558  vlib_frame_queue_t *fq;
561  vec_elt_at_index (tm->frame_queue_mains, frame_queue_index);
562 
563  fq = handoff_queue_by_worker_index[index];
564  if (fq != (vlib_frame_queue_t *) (~0))
565  return fq;
566 
567  fq = fqm->vlib_frame_queues[index];
568  ASSERT (fq);
569 
570  if (PREDICT_FALSE (fq->tail >= (fq->head_hint + queue_hi_thresh)))
571  {
572  /* a valid entry in the array will indicate the queue has reached
573  * the specified threshold and is congested
574  */
575  handoff_queue_by_worker_index[index] = fq;
576  fq->enqueue_full_events++;
577  return fq;
578  }
579 
580  return NULL;
581 }
582 
583 static inline vlib_frame_queue_elt_t *
585  u32 vlib_worker_index,
587  handoff_queue_elt_by_worker_index)
588 {
590 
591  if (handoff_queue_elt_by_worker_index[vlib_worker_index])
592  return handoff_queue_elt_by_worker_index[vlib_worker_index];
593 
594  elt = vlib_get_frame_queue_elt (frame_queue_index, vlib_worker_index);
595 
596  handoff_queue_elt_by_worker_index[vlib_worker_index] = elt;
597 
598  return elt;
599 }
600 
601 u8 *vlib_thread_stack_init (uword thread_index);
602 int vlib_thread_cb_register (struct vlib_main_t *vm,
603  vlib_thread_callbacks_t * cb);
604 extern void *rpc_call_main_thread_cb_fn;
605 
606 void
608  args);
609 void vlib_rpc_call_main_thread (void *function, u8 * args, u32 size);
610 void vlib_get_thread_core_numa (vlib_worker_thread_t * w, unsigned cpu_id);
612 
613 #endif /* included_vlib_threads_h */
614 
615 /*
616  * fd.io coding-style-patch-verification: ON
617  *
618  * Local Variables:
619  * eval: (c-set-style "gnu")
620  * End:
621  */
f64 time_offset
Definition: main.h:108
vlib_thread_main_t * vlib_get_thread_main_not_inline(void)
Definition: threads.c:1706
#define CLIB_CACHE_LINE_ALIGN_MARK(mark)
Definition: cache.h:60
void vlib_worker_thread_init(vlib_worker_thread_t *w)
Definition: threads.c:382
void() vlib_thread_function_t(void *arg)
Definition: threads.h:25
int vlib_frame_queue_enqueue(vlib_main_t *vm, u32 node_runtime_index, u32 frame_queue_index, vlib_frame_t *frame, vlib_frame_queue_msg_type_t type)
#define clib_atomic_add_fetch(a, b)
Definition: atomics.h:30
u32 thread_index
unsigned long u64
Definition: types.h:89
void vlib_worker_thread_initial_barrier_sync_and_release(vlib_main_t *vm)
Definition: threads.c:1253
static f64 vlib_time_now(vlib_main_t *vm)
Definition: main.h:325
uword numa_heap_size
Definition: threads.h:326
void vlib_set_thread_name(char *name)
Definition: threads.c:145
u32 thread_index
Definition: main.h:213
void * thread_function_arg
Definition: threads.h:97
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
Definition: nat44_ei.c:3048
frame_queue_trace_t * frame_queue_traces
Definition: threads.h:158
elog_track_t elog_track
Definition: threads.h:99
vlib_worker_thread_t * vlib_worker_threads
Definition: threads.c:35
void vlib_rpc_call_main_thread(void *function, u8 *args, u32 size)
Definition: threads.c:1637
string name[64]
Definition: fib.api:25
clib_time_t clib_time
Definition: main.h:106
struct vlib_thread_registration_ * next
Definition: threads.h:30
int vlib_thread_cb_register(struct vlib_main_t *vm, vlib_thread_callbacks_t *cb)
Definition: threads.c:1613
volatile u32 valid
Definition: threads.h:75
static vlib_frame_queue_t * is_vlib_frame_queue_congested(u32 frame_queue_index, u32 index, u32 queue_hi_thresh, vlib_frame_queue_t **handoff_queue_by_worker_index)
Definition: threads.h:552
unsigned char u8
Definition: types.h:56
static void vlib_smp_unsafe_warning(void)
Definition: threads.h:214
double f64
Definition: types.h:142
unsigned int u32
Definition: types.h:88
static void vlib_worker_thread_barrier_check(void)
Definition: threads.h:378
volatile int parked_at_barrier
Definition: main.h:231
vlib_thread_registration_t * next
Definition: threads.h:267
__clib_export word fformat(FILE *f, char *fmt,...)
Definition: format.c:466
static u32 vlib_get_worker_index(u32 thread_index)
Definition: threads.h:366
#define static_always_inline
Definition: clib.h:112
Callback multiplex scheme For a fully worked-out example, see .../src/vlib/main.
static vlib_global_main_t * vlib_get_global_main(void)
Definition: global_funcs.h:50
vlib_frame_queue_msg_type_t
Definition: threads.h:67
vlib_frame_queue_elt_t ** handoff_queue_elt_by_thread_index
Definition: threads.h:144
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
uword * cpu_core_bitmap
Definition: threads.h:304
vlib_frame_queue_elt_t * elts
Definition: threads.h:137
pthread_t thread[MAX_CONNS]
Definition: main.c:142
f64 time_last_barrier_release
Definition: main.h:109
static u32 vlib_get_current_worker_index()
Definition: threads.h:372
#define VLIB_FRAME_SIZE
Definition: node.h:369
u32 cpu_id
Definition: vpe.api:222
void vlib_process_signal_event_mt_helper(vlib_process_signal_event_mt_args_t *args)
Definition: threads.c:1626
vl_api_fib_path_type_t type
Definition: fib_types.api:123
int extern_thread_mgmt
Definition: threads.h:323
sched_policy_t
Definition: threads.h:249
void * thread_mheap
Definition: threads.h:94
volatile u64 head
Definition: threads.h:127
u8 * vlib_thread_stack_init(uword thread_index)
Definition: main.c:678
vlib_thread_callbacks_t cb
Definition: threads.h:322
const char * barrier_context
Definition: threads.h:106
unsigned short u16
Definition: types.h:57
signed long i64
Definition: types.h:78
vlib_main_t ** vlib_mains
Definition: main.h:279
void vlib_worker_thread_barrier_release(vlib_main_t *vm)
Definition: threads.c:1386
#define PREDICT_FALSE(x)
Definition: clib.h:124
static vlib_frame_queue_elt_t * vlib_get_worker_handoff_queue_elt(u32 frame_queue_index, u32 vlib_worker_index, vlib_frame_queue_elt_t **handoff_queue_elt_by_worker_index)
Definition: threads.h:584
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
Definition: nat44_ei.c:3047
void vlib_worker_thread_node_runtime_update(void)
Definition: threads.c:1088
volatile u64 tail
Definition: threads.h:122
vlib_frame_queue_t ** vlib_frame_queues
Definition: threads.h:154
static_always_inline uword vlib_get_thread_index(void)
Definition: threads.h:208
u32 index
Definition: flow_types.api:221
frame_queue_nelt_counter_t * frame_queue_histogram
Definition: threads.h:159
void * rpc_call_main_thread_cb_fn
Definition: threads.c:1634
#define ELOG_TYPE_DECLARE(f)
Definition: elog.h:442
void vlib_worker_wait_one_loop(void)
Wait until each of the workers has been once around the track.
Definition: threads.c:1499
vlib_worker_thread_t * worker_threads
Definition: threads.h:274
static u8 vlib_thread_is_main_w_barrier(void)
Definition: threads.h:506
static vlib_frame_queue_elt_t * vlib_get_frame_queue_elt(u32 frame_queue_index, u32 index)
Definition: threads.h:521
volatile u32 * wait_at_barrier
Definition: threads.h:89
vlib_frame_queue_per_thread_data_t * per_thread_data
Definition: threads.h:155
vlib_frame_queue_t ** congested_handoff_queue_by_thread_index
Definition: threads.h:145
#define ASSERT(truth)
u64 last_cpu_time
Definition: time.h:51
u8 vlib_worker_thread_barrier_held(void)
Return true if the wroker thread barrier is held.
Definition: threads.c:1281
vlib_frame_queue_main_t * frame_queue_mains
Definition: threads.h:310
app_rx_mq_elt_t * elt
Definition: application.c:488
#define ELOG_TRACK_DATA(em, f, track)
Definition: elog.h:478
#define always_inline
Definition: rdma_mlx5dv.h:23
struct vlib_thread_registration_ vlib_thread_registration_t
uword * thread_registrations_by_name
Definition: threads.h:272
u32 vlib_frame_queue_main_init(u32 node_index, u32 frame_queue_nelts)
Definition: threads.c:1572
volatile u32 * node_reforks_required
Definition: threads.h:107
const char * barrier_caller
Definition: threads.h:105
static vlib_main_t * vlib_get_main(void)
Definition: global_funcs.h:38
clib_error_t * vlib_thread_init(vlib_main_t *vm)
Definition: threads.c:173
#define clib_atomic_fetch_add(a, b)
Definition: atomics.h:23
u32 enqueue_full_events
Definition: threads.h:123
static vlib_main_t * vlib_get_main_by_index(u32 thread_index)
Definition: global_funcs.h:29
void(**volatile barrier_perf_callbacks)(struct vlib_main_t *, u64 t, int leave)
Definition: main.h:252
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
u64 uword
Definition: types.h:112
void vlib_create_worker_threads(vlib_main_t *vm, int n, void(*thread_function)(void *))
node node_index
volatile u64 head_hint
Definition: threads.h:133
static void vlib_put_frame_queue_elt(vlib_frame_queue_elt_t *hf)
Definition: threads.h:514
volatile u32 * workers_at_barrier
Definition: threads.h:90
#define clib_call_callbacks(h,...)
call the specified callback set
Definition: callback.h:67
static u32 vlib_num_workers()
Definition: threads.h:354
f64 now
void vlib_worker_thread_node_refork(void)
Definition: threads.c:895
#define CLIB_MEMORY_BARRIER()
Definition: clib.h:137
uword * cpu_socket_bitmap
Definition: threads.h:307
#define foreach_sched_policy
Definition: threads.h:242
vlib_thread_registration_t ** registrations
Definition: threads.h:270
vlib_thread_main_t vlib_thread_main
Definition: threads.c:36
elog_main_t elog_main
Definition: main.h:300
pthread_t thread_id
Definition: threads.h:113
vlib_thread_registration_t * registration
Definition: threads.h:101
volatile u32 worker_thread_release
Definition: threads.h:313
vlib_global_main_t vlib_global_main
Definition: main.c:1786
static vlib_main_t * vlib_get_worker_vlib_main(u32 worker_index)
Definition: threads.h:495
static u32 vlib_get_worker_thread_index(u32 worker_index)
Definition: threads.h:360
void vlib_get_thread_core_numa(vlib_worker_thread_t *w, unsigned cpu_id)
Definition: threads.c:439
void vlib_worker_thread_barrier_sync_int(vlib_main_t *vm, const char *func_name)
Definition: threads.c:1290