eal: factorize lcore role code
authorDavid Marchand <david.marchand@redhat.com>
Fri, 25 Oct 2019 13:56:09 +0000 (15:56 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Sun, 27 Oct 2019 09:41:08 +0000 (10:41 +0100)
commit6614072791154410116007cbe6ab237c06b5a577
treeeb9ff65bf34a431d4223de310011b2365449c618
parent56564391d7f6b4a1051d8311493ab907a2c2c9f0
eal: factorize lcore role code

This code belongs to the lcore API, move the prototype to the right
header, then factorize the code into the common code.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_eal/common/eal_common_lcore.c
lib/librte_eal/common/include/rte_eal.h
lib/librte_eal/common/include/rte_lcore.h
lib/librte_eal/freebsd/eal/eal.c
lib/librte_eal/linux/eal/eal.c