| rte_keepalive.h(3) | Library Functions Manual | rte_keepalive.h(3) |
rte_keepalive.h
#include <rte_config.h>
#include <rte_memory.h>
#define RTE_KEEPALIVE_MAXCORES RTE_MAX_LCORE
typedef void(* rte_keepalive_failure_callback_t)
(void *data, const int id_core)
typedef void(* rte_keepalive_relay_callback_t) (void *data,
const int id_core, enum rte_keepalive_state core_state, uint64_t last_seen)
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)
void rte_keepalive_mark_alive (struct rte_keepalive *keepcfg)
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)
DPDK RTE LCore Keepalive Monitor.
Definition in file rte_keepalive.h.
Number of cores to track.
Note
Definition at line 24 of file rte_keepalive.h.
Keepalive failure callback.
Receives a data pointer passed to rte_keepalive_create() and the id of the failed core.
Parameters
Definition at line 45 of file rte_keepalive.h.
Keepalive relay callback.
Receives a data pointer passed to rte_keepalive_register_relay_callback(), the id of the core for which state is to be forwarded, and details of the current core state.
Parameters
Definition at line 60 of file rte_keepalive.h.
Initialise keepalive sub-system.
Parameters
Returns
Checks & handles keepalive state of monitored cores.
Parameters
Registers a core for keepalive checks.
Parameters
Per-core keepalive check.
Parameters
This function needs to be called from within the main process loop of the LCore to be checked.
Per-core sleep-time indication.
Parameters
If CPU idling is enabled, this function needs to be called from within the main process loop of the LCore going to sleep, in order to avoid the LCore being mis-detected as dead.
Registers a 'live core' callback.
The complement of the 'dead core' callback. This is called when a core is known to be alive, and is intended for cases when an app needs to know 'liveness' beyond just knowing when a core has died.
Parameters
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |