New upstream version 17.11.1
[deb_dpdk.git] / lib / librte_timer / rte_timer.c
index 88826f5..ba436cd 100644 (file)
@@ -432,7 +432,7 @@ rte_timer_reset(struct rte_timer *tim, uint64_t ticks,
 
        if (unlikely((tim_lcore != (unsigned)LCORE_ID_ANY) &&
                        !(rte_lcore_is_enabled(tim_lcore) ||
-                               rte_lcore_has_role(tim_lcore, ROLE_SERVICE))))
+                         rte_lcore_has_role(tim_lcore, ROLE_SERVICE) == 0)))
                return -1;
 
        if (type == PERIODICAL)