eventdev: fix resetting software timer

Fix the call to rte_timer_reset_sync() in sw_event_timer_cb().  The
second parameter is the number of ticks, the third is the timer type.

Fixes: 6750b21bd6af ("eventdev: add default software timer adapter")

Signed-off-by: Dan Gora <dg@adax.com>
Acked-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
This commit is contained in:
Dan Gora 2018-05-21 21:14:14 -03:00 committed by Thomas Monjalon
parent 5f30035740
commit 519d8efa1c

View File

@ -565,7 +565,7 @@ sw_event_timer_cb(struct rte_timer *tim, void *arg)
* immediate expiry value, so that we process it again on the
* next iteration.
*/
rte_timer_reset_sync(tim, SINGLE, 0, rte_lcore_id(),
rte_timer_reset_sync(tim, 0, SINGLE, rte_lcore_id(),
sw_event_timer_cb, evtim);
sw_data->stats.evtim_retry_count++;