event/dpaa2: fix to return correct value for timeout ticks
Checks
Commit Message
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(-)
@@ -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;
}