eal: make semantics of lcore role function more intuitive
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 26 Apr 2018 13:42:31 +0000 (14:42 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Apr 2018 14:58:18 +0000 (16:58 +0200)
commitb0a1502a277cafe29e647d74f5fbbb3a153c63c7
tree88e55720948e804582432be9e7acc21250247eae
parent13573bd3f431934da373b1332ef92f8c30940272
eal: make semantics of lcore role function more intuitive

rte_lcore_has_role() returns 0 if role of lcore matches requested
role. The return value of the API is confusing, and this is a known
problem with a deprecation notice announcing the change to more
intuitive semantics:

Commit 064518f68d48 ("doc: announce EAL API change to lcore role function")

Implement changes announced in the deprecation notice, and remove it.
Also, fix usages of this API to reflect the change. Control thread patches
expected new behavior and were broken before, now they are fixed as well.

Fixes: d651ee4919cd ("eal: set affinity for control threads")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
doc/guides/rel_notes/deprecation.rst
doc/guides/rel_notes/release_18_05.rst
lib/librte_eal/common/eal_common_thread.c
lib/librte_eal/common/include/rte_lcore.h
lib/librte_timer/rte_timer.c