X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvlib%2Fthreads.h;h=bb7c164c2e3e93cb2105e980e001a5638a4eb77a;hb=c3a06556d1a4a63646d4cc7aa76274177a56c13f;hp=7de0412362e2235d190ef43c3f398e65fb4140d4;hpb=88c6e0086b15963b4d1a268e1fe8bbc2bcd9779c;p=vpp.git diff --git a/src/vlib/threads.h b/src/vlib/threads.h index 7de0412362e..bb7c164c2e3 100644 --- a/src/vlib/threads.h +++ b/src/vlib/threads.h @@ -108,7 +108,9 @@ typedef struct volatile u32 *node_reforks_required; long lwp; - int lcore_id; + int cpu_id; + int core_id; + int socket_id; pthread_t thread_id; } vlib_worker_thread_t; @@ -270,8 +272,8 @@ typedef enum typedef struct { clib_error_t *(*vlib_launch_thread_cb) (void *fp, vlib_worker_thread_t * w, - unsigned lcore_id); - clib_error_t *(*vlib_thread_set_lcore_cb) (u32 thread, u16 lcore); + unsigned cpu_id); + clib_error_t *(*vlib_thread_set_lcore_cb) (u32 thread, u16 cpu); } vlib_thread_callbacks_t; typedef struct @@ -595,6 +597,7 @@ vlib_process_signal_event_mt_helper (vlib_process_signal_event_mt_args_t * args); void vlib_rpc_call_main_thread (void *function, u8 * args, u32 size); +u32 elog_global_id_for_msg_name (const char *msg_name); #endif /* included_vlib_threads_h */ /*