#define RTE_KEEPALIVE_MAXCORES RTE_MAX_LCORE
#endif
-
/**
* Keepalive failure callback.
*
void *data,
const int id_core);
-
/**
* Keepalive state structure.
* @internal
*/
struct rte_keepalive;
-
/**
* Initialise keepalive sub-system.
* @param callback
rte_keepalive_failure_callback_t callback,
void *data);
-
/**
* Checks & handles keepalive state of monitored cores.
* @param *ptr_timer Triggering timer (unused)
*/
void rte_keepalive_dispatch_pings(void *ptr_timer, void *ptr_data);
-
/**
* Registers a core for keepalive checks.
* @param *keepcfg
void rte_keepalive_register_core(struct rte_keepalive *keepcfg,
const int id_core);
-
/**
* Per-core keepalive check.
* @param *keepcfg
void
rte_keepalive_mark_alive(struct rte_keepalive *keepcfg);
-
#endif /* _KEEPALIVE_H_ */
uint64_t tsc_mhz;
};
-
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)
}
}
-
struct rte_keepalive *
rte_keepalive_create(rte_keepalive_failure_callback_t callback,
void *data)
return keepcfg;
}
-
void
rte_keepalive_register_core(struct rte_keepalive *keepcfg, const int id_core)
{
}
}
-
void
rte_keepalive_mark_alive(struct rte_keepalive *keepcfg)
{