summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
685e865)
This patch removes double newlines between functions
in keepalive.[hc] aligning it with the rest of DPDK.
Fixes:
75583b0d1efd ("eal: add keep alive monitoring")
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
#define RTE_KEEPALIVE_MAXCORES RTE_MAX_LCORE
#endif
#define RTE_KEEPALIVE_MAXCORES RTE_MAX_LCORE
#endif
/**
* Keepalive failure callback.
*
/**
* Keepalive failure callback.
*
void *data,
const int id_core);
void *data,
const int id_core);
/**
* Keepalive state structure.
* @internal
*/
struct rte_keepalive;
/**
* Keepalive state structure.
* @internal
*/
struct rte_keepalive;
/**
* Initialise keepalive sub-system.
* @param callback
/**
* Initialise keepalive sub-system.
* @param callback
rte_keepalive_failure_callback_t callback,
void *data);
rte_keepalive_failure_callback_t callback,
void *data);
/**
* Checks & handles keepalive state of monitored cores.
* @param *ptr_timer Triggering timer (unused)
/**
* Checks & handles keepalive state of monitored cores.
* @param *ptr_timer Triggering timer (unused)
*/
void rte_keepalive_dispatch_pings(void *ptr_timer, void *ptr_data);
*/
void rte_keepalive_dispatch_pings(void *ptr_timer, void *ptr_data);
/**
* Registers a core for keepalive checks.
* @param *keepcfg
/**
* Registers a core for keepalive checks.
* @param *keepcfg
void rte_keepalive_register_core(struct rte_keepalive *keepcfg,
const int id_core);
void rte_keepalive_register_core(struct rte_keepalive *keepcfg,
const int id_core);
/**
* Per-core keepalive check.
* @param *keepcfg
/**
* Per-core keepalive check.
* @param *keepcfg
void
rte_keepalive_mark_alive(struct rte_keepalive *keepcfg);
void
rte_keepalive_mark_alive(struct rte_keepalive *keepcfg);
#endif /* _KEEPALIVE_H_ */
#endif /* _KEEPALIVE_H_ */
static void
print_trace(const char *msg, struct rte_keepalive *keepcfg, int idx_core)
{
static void
print_trace(const char *msg, struct rte_keepalive *keepcfg, int idx_core)
{
void
rte_keepalive_dispatch_pings(__rte_unused void *ptr_timer,
void *ptr_data)
void
rte_keepalive_dispatch_pings(__rte_unused void *ptr_timer,
void *ptr_data)
struct rte_keepalive *
rte_keepalive_create(rte_keepalive_failure_callback_t callback,
void *data)
struct rte_keepalive *
rte_keepalive_create(rte_keepalive_failure_callback_t callback,
void *data)
void
rte_keepalive_register_core(struct rte_keepalive *keepcfg, const int id_core)
{
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_alive(struct rte_keepalive *keepcfg)
{