eal: add lcore iterators
authorDavid Marchand <david.marchand@redhat.com>
Mon, 6 Jul 2020 20:52:32 +0000 (22:52 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 8 Jul 2020 12:41:06 +0000 (14:41 +0200)
commitb41befd3af2aaa486a04f79138bea22f43bf5f3c
tree5ba1322de23e784abd226ce95e527d3a241e7f9a
parent61bb531295a43b9c8e207fef899365539c12975c
eal: add lcore iterators

Add a helper to iterate all lcores.
The iterator callback is read-only wrt the lcores list.

Implement a dump function on top of this for debugging.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test/test_lcores.c
lib/librte_eal/common/eal_common_lcore.c
lib/librte_eal/common/eal_common_thread.c
lib/librte_eal/common/eal_thread.h
lib/librte_eal/freebsd/eal.c
lib/librte_eal/freebsd/eal_thread.c
lib/librte_eal/include/rte_lcore.h
lib/librte_eal/linux/eal.c
lib/librte_eal/linux/eal_thread.c
lib/librte_eal/rte_eal_version.map