timer: fix reset on service cores
authorErik Gabriel Carrillo <erik.g.carrillo@intel.com>
Fri, 12 Jan 2018 21:31:05 +0000 (15:31 -0600)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 16 Jan 2018 00:48:20 +0000 (01:48 +0100)
commitd33fbd51e58545666dc9980484fc7c6a1a0d5439
tree2b9ce1beaaef7153f9170fb0ada0c78e37f8fa35
parent4f438c85153ef7e910917c38ad60c0b6f296ee2d
timer: fix reset on service cores

The return value of rte_lcore_has_role is misinterpreted in the timer
reset function.  The return values of rte_lcore_has_role will be changed
in a future DPDK release, but this commit fixes this call site until
that happens.

Fixes: 351f463456f8 ("timer: allow reset on service cores")
Cc: stable@dpdk.org
Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
lib/librte_timer/rte_timer.c