DPDK  19.02.0
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.

Definition at line 35 of file rte_lcore.h.

Field Documentation

unsigned detected

true if lcore was detected

Definition at line 36 of file rte_lcore.h.

pthread_t thread_id

pthread identifier

Definition at line 37 of file rte_lcore.h.

int pipe_master2slave[2]

communication pipe with master

Definition at line 38 of file rte_lcore.h.

int pipe_slave2master[2]

communication pipe with master

Definition at line 39 of file rte_lcore.h.

lcore_function_t* volatile f

function to call

Definition at line 40 of file rte_lcore.h.

void* volatile arg

argument of function

Definition at line 41 of file rte_lcore.h.

volatile int ret

return value of function

Definition at line 42 of file rte_lcore.h.

enum rte_lcore_state_t state

lcore state

Examples:
examples/bond/main.c.

Definition at line 43 of file rte_lcore.h.

unsigned socket_id

physical socket id for this lcore

Definition at line 44 of file rte_lcore.h.

unsigned core_id

core number on socket for this lcore

Definition at line 45 of file rte_lcore.h.

int core_index

relative index, starting from 0

Definition at line 46 of file rte_lcore.h.

rte_cpuset_t cpuset

cpu set which the lcore affinity to

Definition at line 47 of file rte_lcore.h.

uint8_t core_role

role of core eg: OFF, RTE, SERVICE

Definition at line 48 of file rte_lcore.h.


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