14 #include <rte_config.h>
17 #ifndef RTE_KEEPALIVE_MAXCORES
21 #define RTE_KEEPALIVE_MAXCORES RTE_MAX_LCORE
24 enum rte_keepalive_state {
25 RTE_KA_STATE_UNUSED = 0,
26 RTE_KA_STATE_ALIVE = 1,
27 RTE_KA_STATE_MISSING = 4,
28 RTE_KA_STATE_DEAD = 2,
29 RTE_KA_STATE_GONE = 3,
30 RTE_KA_STATE_DOZING = 5,
31 RTE_KA_STATE_SLEEP = 6
60 enum rte_keepalive_state core_state,
void(* rte_keepalive_relay_callback_t)(void *data, const int id_core, enum rte_keepalive_state core_state, uint64_t last_seen)
void rte_keepalive_mark_sleep(struct rte_keepalive *keepcfg)
void rte_keepalive_register_relay_callback(struct rte_keepalive *keepcfg, rte_keepalive_relay_callback_t callback, void *data)
void(* rte_keepalive_failure_callback_t)(void *data, const int id_core)
void rte_keepalive_dispatch_pings(void *ptr_timer, void *ptr_data)
struct rte_keepalive * rte_keepalive_create(rte_keepalive_failure_callback_t callback, void *data)
void rte_keepalive_mark_alive(struct rte_keepalive *keepcfg)
void rte_keepalive_register_core(struct rte_keepalive *keepcfg, const int id_core)