This patch-set adds functions for detecting and reporting live-ness of LCores, the primary requirement of which is minimal overheads for the core(s) being checked. Core failures are notified via an application defined callback. As an example l2fwd with random failures is used.
v5 * Consistant use of ENUMs rather than integer literals * Use RTE_INFO for logging * Removed #ifdef's * Missing Doxygen description & index entries * Use rte_zmalloc rather than stock malloc * Use __rte_unused rather than __attribute__((unused)) * Corrected .map function order * Rebased to latest origin/master Remy Horton (3): rte: add keep alive functionality docs: add keep alive sample app guide & release notes example: add keep alive sample application MAINTAINERS | 4 + doc/api/doxy-api-index.md | 1 + doc/guides/rel_notes/release_2_2.rst | 3 + doc/guides/sample_app_ug/index.rst | 1 + doc/guides/sample_app_ug/keep_alive.rst | 191 ++++++ examples/l2fwd-keepalive/Makefile | 50 ++ examples/l2fwd-keepalive/main.c | 806 ++++++++++++++++++++++++ lib/librte_eal/bsdapp/eal/Makefile | 1 + lib/librte_eal/bsdapp/eal/rte_eal_version.map | 6 +- lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/common/include/rte_keepalive.h | 146 +++++ lib/librte_eal/common/rte_keepalive.c | 113 ++++ lib/librte_eal/linuxapp/eal/Makefile | 1 + lib/librte_eal/linuxapp/eal/rte_eal_version.map | 6 +- 14 files changed, 1328 insertions(+), 3 deletions(-) create mode 100644 doc/guides/sample_app_ug/keep_alive.rst create mode 100644 examples/l2fwd-keepalive/Makefile create mode 100644 examples/l2fwd-keepalive/main.c create mode 100644 lib/librte_eal/common/include/rte_keepalive.h create mode 100644 lib/librte_eal/common/rte_keepalive.c -- 1.9.3