timer: fix reset/stop in callback for new API
authorErik Gabriel Carrillo <erik.g.carrillo@intel.com>
Fri, 26 Apr 2019 14:41:24 +0000 (09:41 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 3 May 2019 21:07:36 +0000 (23:07 +0200)
commit0efd46d7955de6a7b5d011fcac51bd42a8e6409b
tree32ba73aca47792148f2d59070e978cb435f11276
parente6b65f90ba4bc3b51b3585abc70c74847a4a6177
timer: fix reset/stop in callback for new API

The rte_timer_alt_manage function should track which is the running
timer and whether or not it was updated by a callback in the priv_timer
structure that corresponds to the running lcore, so that restarting
or stopping the timer from the callback works correctly.

Fixes: c0749f7096c7 ("timer: allow management in shared memory")

Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
lib/librte_timer/rte_timer.c