From: Dan Gora Date: Tue, 22 May 2018 00:14:14 +0000 (-0300) Subject: eventdev: fix resetting software timer X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=519d8efa1cf8d500a9d3e05563cbf09a9af3c783;p=dpdk.git 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 Acked-by: Erik Gabriel Carrillo --- diff --git a/lib/librte_eventdev/rte_event_timer_adapter.c b/lib/librte_eventdev/rte_event_timer_adapter.c index 9a863f5cb6..6f1d672ce0 100644 --- a/lib/librte_eventdev/rte_event_timer_adapter.c +++ b/lib/librte_eventdev/rte_event_timer_adapter.c @@ -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++;