DPDK  17.11.10
Data Fields
lcore_config Struct Reference

#include <rte_lcore.h>

Data Fields

unsigned detected
 
pthread_t thread_id
 
int pipe_master2slave [2]
 
int pipe_slave2master [2]
 
lcore_function_t *volatile f
 
void *volatile arg
 
volatile int ret
 
enum rte_lcore_state_t state
 
unsigned socket_id
 
unsigned core_id
 
int core_index
 
rte_cpuset_t cpuset
 
uint8_t core_role
 

Detailed Description

Structure storing internal configuration (per-lcore)

Examples:
examples/bond/main.c, and examples/ip_pipeline/cpu_core_map.c.

Definition at line 64 of file rte_lcore.h.

Field Documentation

unsigned detected

true if lcore was detected

Examples:
examples/ip_pipeline/cpu_core_map.c.

Definition at line 65 of file rte_lcore.h.

pthread_t thread_id

pthread identifier

Definition at line 66 of file rte_lcore.h.

int pipe_master2slave[2]

communication pipe with master

Definition at line 67 of file rte_lcore.h.

int pipe_slave2master[2]

communication pipe with master

Definition at line 68 of file rte_lcore.h.

lcore_function_t* volatile f

function to call

Definition at line 69 of file rte_lcore.h.

void* volatile arg

argument of function

Definition at line 70 of file rte_lcore.h.

volatile int ret

return value of function

Definition at line 71 of file rte_lcore.h.

enum rte_lcore_state_t state

lcore state

Examples:
examples/bond/main.c.

Definition at line 72 of file rte_lcore.h.

unsigned socket_id

physical socket id for this lcore

Examples:
examples/ip_pipeline/cpu_core_map.c.

Definition at line 73 of file rte_lcore.h.

unsigned core_id

core number on socket for this lcore

Examples:
examples/ip_pipeline/cpu_core_map.c.

Definition at line 74 of file rte_lcore.h.

int core_index

relative index, starting from 0

Definition at line 75 of file rte_lcore.h.

rte_cpuset_t cpuset

cpu set which the lcore affinity to

Definition at line 76 of file rte_lcore.h.

uint8_t core_role

role of core eg: OFF, RTE, SERVICE

Definition at line 77 of file rte_lcore.h.


The documentation for this struct was generated from the following file: