15#include <rte_compat.h>
16#include <rte_config.h>
26#define LCORE_ID_ANY UINT32_MAX
36 RTE_LCORE_ROLE_SERVICE,
37 RTE_LCORE_ROLE_NON_EAL,
41#define ROLE_RTE RTE_LCORE_ROLE_RTE
42#define ROLE_OFF RTE_LCORE_ROLE_OFF
43#define ROLE_SERVICE RTE_LCORE_ROLE_SERVICE
44#define ROLE_NON_EAL RTE_LCORE_ROLE_NON_EAL
241#define RTE_LCORE_FOREACH(i) \
242 for (i = rte_get_next_lcore(-1, 0, 0); \
244 i = rte_get_next_lcore(i, 0, 0))
249#define RTE_LCORE_FOREACH_WORKER(i) \
250 for (i = rte_get_next_lcore(-1, 1, 0); \
252 i = rte_get_next_lcore(i, 1, 0))
unsigned int rte_lcore_to_socket_id(unsigned int lcore_id)
void rte_lcore_callback_unregister(void *handle)
RTE_DECLARE_PER_LCORE(unsigned, _lcore_id)
unsigned int rte_lcore_count(void)
void(* rte_lcore_uninit_cb)(unsigned int lcore_id, void *arg)
__rte_experimental unsigned int rte_cpu_socket_id(unsigned int cpu_id)
int rte_lcore_index(int lcore_id)
int(* rte_lcore_usage_cb)(unsigned int lcore_id, struct rte_lcore_usage *usage)
void rte_lcore_register_usage_cb(rte_lcore_usage_cb cb)
int rte_lcore_has_role(unsigned int lcore_id, enum rte_lcore_role_t role)
int rte_lcore_is_enabled(unsigned int lcore_id)
unsigned int rte_get_main_lcore(void)
int rte_socket_id_by_idx(unsigned int idx)
void rte_lcore_dump(FILE *f)
int rte_thread_register(void)
unsigned int rte_socket_id(void)
rte_cpuset_t rte_lcore_cpuset(unsigned int lcore_id)
void * rte_lcore_callback_register(const char *name, rte_lcore_init_cb init, rte_lcore_uninit_cb uninit, void *arg)
enum rte_lcore_role_t rte_eal_lcore_role(unsigned int lcore_id)
int rte_lcore_iterate(rte_lcore_iterate_cb cb, void *arg)
int(* rte_lcore_iterate_cb)(unsigned int lcore_id, void *arg)
int(* rte_lcore_init_cb)(unsigned int lcore_id, void *arg)
unsigned int rte_get_next_lcore(unsigned int i, int skip_main, int wrap)
int rte_lcore_to_cpu_id(int lcore_id)
void rte_thread_unregister(void)
unsigned int rte_socket_count(void)
static unsigned rte_lcore_id(void)
#define RTE_PER_LCORE(name)