diff mbox series

event/dpaa2: fix to return correct value for timeout ticks

Message ID 20190627093604.5275-1-hemant.agrawal@nxp.com
State New
Headers show
Series event/dpaa2: fix to return correct value for timeout ticks | expand

Commit Message

Hemant Agrawal June 27, 2019, 9:36 a.m. UTC
From: Nipun Gupta <nipun.gupta@nxp.com>


Fixes: 0ce3ce7c275c ("event/dpaa2: add configuration functions")
Cc: stable@dpdk.org

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>

---
 drivers/event/dpaa2/dpaa2_eventdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1
diff mbox series

Patch

diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c
index 8d168b028..926b7edd8 100644
--- a/drivers/event/dpaa2/dpaa2_eventdev.c
+++ b/drivers/event/dpaa2/dpaa2_eventdev.c
@@ -640,7 +640,7 @@  dpaa2_eventdev_timeout_ticks(struct rte_eventdev *dev, uint64_t ns,
 	EVENTDEV_INIT_FUNC_TRACE();
 
 	RTE_SET_USED(dev);
-	*timeout_ticks = ns * scale;
+	*timeout_ticks = ns / scale;
 
 	return 0;
 }