DPDK
2.2.0
|
#include <rte_memory.h>
Go to the source code of this file.
Data Structures | |
struct | rte_keepalive |
Macros | |
#define | RTE_KEEPALIVE_MAXCORES RTE_MAX_LCORE |
Typedefs | |
typedef void(* | rte_keepalive_failure_callback_t )(void *data, const int id_core) |
Functions | |
struct rte_keepalive * | rte_keepalive_create (rte_keepalive_failure_callback_t callback, void *data) |
void | rte_keepalive_dispatch_pings (void *ptr_timer, void *ptr_data) |
void | rte_keepalive_register_core (struct rte_keepalive *keepcfg, const int id_core) |
static void | rte_keepalive_mark_alive (struct rte_keepalive *keepcfg) |
DPDK RTE LCore Keepalive Monitor.
Definition in file rte_keepalive.h.
#define RTE_KEEPALIVE_MAXCORES RTE_MAX_LCORE |
Number of cores to track.
Definition at line 48 of file rte_keepalive.h.
typedef void(* rte_keepalive_failure_callback_t)(void *data, const int id_core) |
Keepalive failure callback.
Receives a data pointer passed to rte_keepalive_create() and the id of the failed core.
Definition at line 58 of file rte_keepalive.h.
|
read |
Initialise keepalive sub-system.
callback | Function called upon detection of a dead core. |
data | Data pointer to be passed to function callback. |
void rte_keepalive_dispatch_pings | ( | void * | ptr_timer, |
void * | ptr_data | ||
) |
Checks & handles keepalive state of monitored cores.
*ptr_timer | Triggering timer (unused) |
*ptr_data | Data pointer (keepalive structure) |
void rte_keepalive_register_core | ( | struct rte_keepalive * | keepcfg, |
const int | id_core | ||
) |
Registers a core for keepalive checks.
*keepcfg | Keepalive structure pointer |
id_core | ID number of core to register. |
|
inlinestatic |
Per-core keepalive check.
*keepcfg | Keepalive structure pointer |
This function needs to be called from within the main process loop of the LCore to be checked.
Definition at line 140 of file rte_keepalive.h.