From 38f1fda41c164e4f107f5b3f06258b2e679bbea9 Mon Sep 17 00:00:00 2001 From: Matias Elo Date: Fri, 1 Mar 2024 10:17:27 +0200 Subject: Port 90dd758b7 "linux-gen: timer: return time to the next timeout from timer_run()" Time to the next timeout is not available with DPDK timer implementation. Signed-off-by: Matias Elo Reviewed-by: Tuomas Taipale --- platform/linux-dpdk/include/odp_timer_internal.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/linux-dpdk/include/odp_timer_internal.h b/platform/linux-dpdk/include/odp_timer_internal.h index 3cc8ca469..4d7efedd6 100644 --- a/platform/linux-dpdk/include/odp_timer_internal.h +++ b/platform/linux-dpdk/include/odp_timer_internal.h @@ -24,6 +24,8 @@ #include +#include + /** * Internal Timeout header */ @@ -56,10 +58,13 @@ ODP_STATIC_ASSERT(sizeof(odp_timeout_hdr_t) <= 3 * RTE_CACHE_LINE_SIZE, void _odp_timer_run_inline(int dec); /* Static inline wrapper to minimize modification of schedulers. */ -static inline void timer_run(int dec) +static inline uint64_t timer_run(int dec) { if (odp_global_rw->inline_timers) _odp_timer_run_inline(dec); + + /* Time to the next timeout not available with DPDK timers */ + return UINT64_MAX; } #endif -- cgit v1.2.3