timer: add API to query ticks until the next timer
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 17 Dec 2019 00:55:03 +0000 (16:55 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 20 Jan 2020 00:55:19 +0000 (01:55 +0100)
commitcd7c59dc044bab88c632f9916428331203a824b6
tree4b859c66951175ce2b6bcb0dd4d2278d40481f36
parent2a178702c00f2a8b547358fedc7107d376f8825e
timer: add API to query ticks until the next timer

It is useful to know when the next timer will expire when
using rte_epoll_wait (or sleep when idle). This experimental
API provides a hook to query the number of ticks remaining.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
lib/librte_timer/rte_timer.c
lib/librte_timer/rte_timer.h
lib/librte_timer/rte_timer_version.map