FD.io VPP  v17.04.2-2-ga8f93f8
Vector Packet Processing
threads.c File Reference
+ Include dependency graph for threads.c:

Go to the source code of this file.

Macros

#define FRAME_QUEUE_NELTS   32
 

Functions

u32 vl (void *p)
 
uword os_get_cpu_number (void)
 
uword os_get_ncpus (void)
 
void vlib_set_thread_name (char *name)
 
static int sort_registrations_by_no_clone (void *a0, void *a1)
 
static uwordvlib_sysfs_list_to_bitmap (char *filename)
 
clib_error_tvlib_thread_init (vlib_main_t *vm)
 
vlib_worker_thread_tvlib_alloc_thread (vlib_main_t *vm)
 
vlib_frame_queue_tvlib_frame_queue_alloc (int nelts)
 
void vl_msg_api_handler_no_free (void *)
 
void vlib_worker_thread_init (vlib_worker_thread_t *w)
 
void * vlib_worker_thread_bootstrap_fn (void *arg)
 
static clib_error_tvlib_launch_thread_int (void *fp, vlib_worker_thread_t *w, unsigned lcore_id)
 
static clib_error_tstart_workers (vlib_main_t *vm)
 
void vlib_worker_thread_node_runtime_update (void)
 
u32 unformat_sched_policy (unformat_input_t *input, va_list *args)
 
static clib_error_tcpu_config (vlib_main_t *vm, unformat_input_t *input)
 
void vnet_main_fixup (vlib_fork_fixup_t which)
 
void vlib_worker_thread_fork_fixup (vlib_fork_fixup_t which)
 
void vlib_worker_thread_barrier_sync (vlib_main_t *vm)
 
void vlib_worker_thread_barrier_release (vlib_main_t *vm)
 
int vlib_frame_queue_dequeue (vlib_main_t *vm, vlib_frame_queue_main_t *fqm)
 
void vlib_worker_thread_fn (void *arg)
 
 VLIB_REGISTER_THREAD (worker_thread_reg, static)
 
u32 vlib_frame_queue_main_init (u32 node_index, u32 frame_queue_nelts)
 
int vlib_thread_cb_register (struct vlib_main_t *vm, vlib_thread_callbacks_t *cb)
 
clib_error_tthreads_init (vlib_main_t *vm)
 

Variables

 DECLARE_CJ_GLOBAL_LOG
 
vlib_worker_thread_tvlib_worker_threads
 
vlib_thread_main_t vlib_thread_main
 

Macro Definition Documentation

#define FRAME_QUEUE_NELTS   32

Definition at line 27 of file threads.c.

Function Documentation

static clib_error_t* cpu_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 1025 of file threads.c.

+ Here is the call graph for this function:

uword os_get_cpu_number ( void  )

Definition at line 39 of file threads.c.

uword os_get_ncpus ( void  )

Definition at line 62 of file threads.c.

static int sort_registrations_by_no_clone ( void *  a0,
void *  a1 
)
static

Definition at line 89 of file threads.c.

+ Here is the caller graph for this function:

static clib_error_t* start_workers ( vlib_main_t vm)
static

Definition at line 534 of file threads.c.

+ Here is the call graph for this function:

clib_error_t* threads_init ( vlib_main_t vm)

Definition at line 1463 of file threads.c.

+ Here is the caller graph for this function:

u32 unformat_sched_policy ( unformat_input_t input,
va_list *  args 
)

Definition at line 1011 of file threads.c.

+ Here is the caller graph for this function:

u32 vl ( void *  p)

Definition at line 30 of file threads.c.

void vl_msg_api_handler_no_free ( void *  v)

Definition at line 328 of file threads.c.

+ Here is the caller graph for this function:

vlib_worker_thread_t* vlib_alloc_thread ( vlib_main_t vm)

Definition at line 279 of file threads.c.

vlib_frame_queue_t* vlib_frame_queue_alloc ( int  nelts)

Definition at line 294 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vlib_frame_queue_dequeue ( vlib_main_t vm,
vlib_frame_queue_main_t fqm 
)

Definition at line 1261 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 vlib_frame_queue_main_init ( u32  node_index,
u32  frame_queue_nelts 
)

Definition at line 1423 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* vlib_launch_thread_int ( void *  fp,
vlib_worker_thread_t w,
unsigned  lcore_id 
)
static

Definition at line 508 of file threads.c.

+ Here is the caller graph for this function:

VLIB_REGISTER_THREAD ( worker_thread_reg  ,
static   
)

+ Here is the caller graph for this function:

void vlib_set_thread_name ( char *  name)

Definition at line 74 of file threads.c.

+ Here is the caller graph for this function:

static uword* vlib_sysfs_list_to_bitmap ( char *  filename)
static

Definition at line 99 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vlib_thread_cb_register ( struct vlib_main_t vm,
vlib_thread_callbacks_t cb 
)

Definition at line 1450 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vlib_thread_init ( vlib_main_t vm)

Definition at line 129 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_worker_thread_barrier_release ( vlib_main_t vm)

Definition at line 1231 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_worker_thread_barrier_sync ( vlib_main_t vm)

Definition at line 1199 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* vlib_worker_thread_bootstrap_fn ( void *  arg)

Definition at line 492 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_worker_thread_fn ( void *  arg)

Definition at line 1389 of file threads.c.

+ Here is the call graph for this function:

void vlib_worker_thread_fork_fixup ( vlib_fork_fixup_t  which)

Definition at line 1176 of file threads.c.

+ Here is the call graph for this function:

void vlib_worker_thread_init ( vlib_worker_thread_t w)

Definition at line 455 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_worker_thread_node_runtime_update ( void  )

Definition at line 814 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vnet_main_fixup ( vlib_fork_fixup_t  which)

Definition at line 1171 of file threads.c.

+ Here is the caller graph for this function:

Variable Documentation

DECLARE_CJ_GLOBAL_LOG

Definition at line 25 of file threads.c.

vlib_thread_main_t vlib_thread_main

Definition at line 36 of file threads.c.

vlib_worker_thread_t* vlib_worker_threads

Definition at line 35 of file threads.c.