timer: fix lag delay
authorKarmarkar Suyash <skarmarkar@sonusnet.com>
Wed, 21 Sep 2016 20:54:27 +0000 (16:54 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 5 Oct 2016 10:02:53 +0000 (12:02 +0200)
commit0778cfe8642a08934724cf34a4bb2f1fba91cc88
treece613219e1db9b154273ac0ea37177249bf17349
parentdb8c96c5510d5db133d840b97fb20d753dfe15a9
timer: fix lag delay

For periodic timers, if the lag gets introduced, the current code
added additional delay when the next peridoc timer was initialized
by not taking into account the delay added, with this fix the code
would start the next occurrence of timer keeping in account the
lag added. Corrected the behavior.

Fixes: 9b15ba89 ("timer: use a skip list")

Signed-off-by: Karmarkar Suyash <skarmarkar@sonusnet.com>
Acked-by: Robert Sanford <rsanford@akamai.com>
lib/librte_timer/rte_timer.c