timer: fix pending-list manipulation
authorHiroyuki Mikita <h.mikita89@gmail.com>
Sun, 17 Jul 2016 14:35:39 +0000 (23:35 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 25 Jul 2016 15:55:12 +0000 (17:55 +0200)
commitd43baa8503741a0df3feb890265084c22e3fd3ba
treeed522ce04ce14548191e6e304a5ac3854107abcb
parentc3acd92746c3cf5521e583d3a7a6c63d7980db3a
timer: fix pending-list manipulation

This commit fixes incorrect pending-list manipulation
when getting list of expired timers in rte_timer_manage().

When timer_get_prev_entries() sets pending_head on prev,
the pending-list is broken.
The next of pending_head always becomes NULL.
In this depth level, it is not need to manipulate the list.

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

Signed-off-by: Hiroyuki Mikita <h.mikita89@gmail.com>
Acked-by: Robert Sanford <rsanford@akamai.com>
lib/librte_timer/rte_timer.c