diff options
Diffstat (limited to 'lib/librte_timer')
-rw-r--r-- | lib/librte_timer/rte_timer.c | 2 | ||||
-rw-r--r-- | lib/librte_timer/rte_timer.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index 88826f57..ba436cd8 100644 --- a/lib/librte_timer/rte_timer.c +++ b/lib/librte_timer/rte_timer.c @@ -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) diff --git a/lib/librte_timer/rte_timer.h b/lib/librte_timer/rte_timer.h index a276a736..3b50155c 100644 --- a/lib/librte_timer/rte_timer.h +++ b/lib/librte_timer/rte_timer.h @@ -67,6 +67,7 @@ #include <stdint.h> #include <stddef.h> #include <rte_common.h> +#include <rte_config.h> #ifdef __cplusplus extern "C" { |