FD.io VPP  v16.09
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

unsigned __thread RTE_PER_LCORE (_lcore_id)
 
unsigned rte_socket_id ()
 
int rte_eal_remote_launch ()
 
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 int vlib_launch_thread (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)
 
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)
 
static int vlib_frame_queue_dequeue_internal (vlib_main_t *vm)
 
static_always_inline void vlib_worker_thread_internal (vlib_main_t *vm)
 
void vlib_worker_thread_fn (void *arg)
 
 VLIB_REGISTER_THREAD (worker_thread_reg, static)
 
clib_error_tthreads_init (vlib_main_t *vm)
 

Variables

 DECLARE_CJ_GLOBAL_LOG
 
struct lcore_config lcore_config []
 
vlib_thread_main_t vlib_thread_main
 

Macro Definition Documentation

#define FRAME_QUEUE_NELTS   32

Definition at line 36 of file threads.c.

Function Documentation

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

Definition at line 999 of file threads.c.

+ Here is the call graph for this function:

uword os_get_cpu_number ( void  )

Definition at line 58 of file threads.c.

uword os_get_ncpus ( void  )

Definition at line 81 of file threads.c.

int rte_eal_remote_launch ( )

+ Here is the caller graph for this function:

unsigned __thread RTE_PER_LCORE ( _lcore_id  )
unsigned rte_socket_id ( )

+ Here is the caller graph for this function:

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

Definition at line 108 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 549 of file threads.c.

+ Here is the call graph for this function:

clib_error_t* threads_init ( vlib_main_t vm)

Definition at line 1405 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 vl ( void *  p)

Definition at line 50 of file threads.c.

void vl_msg_api_handler_no_free ( void *  v)

Definition at line 336 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 287 of file threads.c.

vlib_frame_queue_t* vlib_frame_queue_alloc ( int  nelts)

Definition at line 302 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int vlib_frame_queue_dequeue_internal ( vlib_main_t vm)
inlinestatic

Definition at line 1206 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int vlib_launch_thread ( void *  fp,
vlib_worker_thread_t w,
unsigned  lcore_id 
)
static

Definition at line 521 of file threads.c.

+ Here is the call graph for this function:

+ 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 93 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 118 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 148 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 1176 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 1144 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 497 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 1377 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 1121 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 463 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void vlib_worker_thread_internal ( vlib_main_t vm)

Definition at line 1335 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 831 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 1116 of file threads.c.

+ Here is the caller graph for this function:

Variable Documentation

DECLARE_CJ_GLOBAL_LOG

Definition at line 34 of file threads.c.

struct lcore_config lcore_config[]

Definition at line 45 of file threads.c.

vlib_thread_main_t vlib_thread_main

Definition at line 55 of file threads.c.