Skip to contentSkip to conversation

eventdev: fix resetting software timer

PATCH Applied Dan Gora 3 participants 3 messages May 22, 2018

lore
Share & tools
lore

Dan Gora

author
#0 lore raw

PATCH 1/1 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")
---
 lib/librte_eventdev/rte_event_timer_adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_eventdev/rte_event_timer_adapter.c +1 -1
index 9a863f5cb..6f1d672ce 100644
@@ -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++;
Signature · 1 line
2.13.2.556.g5116f79
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines

-----Original Message-----
From: Dan Gora [mailto:[email protected]] On Behalf Of Dan Gora
Sent: Monday, May 21, 2018 7:14 PM
To: Carrillo, Erik G <[email protected]>; Jerin Jacob <[email protected]>
Cc: [email protected]; Dan Gora <[email protected]>
Subject: [PATCH] eventdev: fix resetting software timer

Quoted 8 lines

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")

---

Good catch, Dan; thanks for the fix.