[dpdk-dev] [PATCH 0/1] eal: return true or false from lcore role check function

Erik Gabriel Carrillo erik.g.carrillo at intel.com
Wed Jan 3 19:43:34 CET 2018


This patch updates the rte_lcore_has_role() function so that it returns
true/false instead of success/failure, which seems more intuitive given the
function name.

There is currently one call site for rte_lcore_has_role() and the caller uses
it (incorrectly) as though it returns true/false.  The call site can be updated
to use the existing definition instead, but this change can avoid similar
misuses in the future.

Erik Gabriel Carrillo (1):
  eal: return true or false from lcore role check function

 lib/librte_eal/common/eal_common_thread.c | 5 +----
 lib/librte_eal/common/include/rte_lcore.h | 2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)

-- 
2.6.4



More information about the dev mailing list