DPDK
1.8.0
|
Data Structures | |
struct | lcore_config |
Macros | |
#define | LCORE_ID_ANY -1 |
#define | RTE_LCORE_FOREACH(i) |
#define | RTE_LCORE_FOREACH_SLAVE(i) |
Functions | |
RTE_DECLARE_PER_LCORE (unsigned, _lcore_id) | |
static unsigned | rte_lcore_id (void) |
static unsigned | rte_get_master_lcore (void) |
static unsigned | rte_lcore_count (void) |
static int | rte_lcore_index (int lcore_id) |
static unsigned | rte_socket_id (void) |
static unsigned | rte_lcore_to_socket_id (unsigned lcore_id) |
static int | rte_lcore_is_enabled (unsigned lcore_id) |
static unsigned | rte_get_next_lcore (unsigned i, int skip_master, int wrap) |
Variables | |
struct lcore_config | lcore_config [RTE_MAX_LCORE] |
API for lcore and socket manipulation
#define LCORE_ID_ANY -1 |
Any lcore.
#define RTE_LCORE_FOREACH | ( | i | ) |
Macro to browse all running lcores.
#define RTE_LCORE_FOREACH_SLAVE | ( | i | ) |
Macro to browse all running lcores except the master lcore.
RTE_DECLARE_PER_LCORE | ( | unsigned | , |
_lcore_id | |||
) |
Per core "core id".
|
inlinestatic |
Get the id of the master lcore
|
inlinestatic |
Get the next enabled lcore ID.
i | The current lcore (reference). |
skip_master | If true, do not return the ID of the master lcore. |
wrap | If true, go back to 0 when RTE_MAX_LCORE is reached; otherwise, return RTE_MAX_LCORE. |
|
inlinestatic |
Return the number of execution units (lcores) on the system.
|
inlinestatic |
Return the ID of the execution unit we are running on.
|
inlinestatic |
Return the index of the lcore starting from zero. The order is physical or given by command line (-l option).
lcore_id | The targeted lcore, or -1 for the current one. |
|
inlinestatic |
Test if an lcore is enabled.
lcore_id | The identifier of the lcore, which MUST be between 0 and RTE_MAX_LCORE-1. |
|
inlinestatic |
Get the ID of the physical socket of the specified lcore
lcore_id | the targeted lcore, which MUST be between 0 and RTE_MAX_LCORE-1. |
|
inlinestatic |
Return the ID of the physical socket of the logical core we are running on.
struct lcore_config lcore_config[RTE_MAX_LCORE] |
Internal configuration (per-lcore)