[dpdk-dev] [PATCH] event/dpaa2: fix to return correct value for timeout ticks
Hemant Agrawal
hemant.agrawal at nxp.com
Thu Jun 27 11:36:04 CEST 2019
From: Nipun Gupta <nipun.gupta at nxp.com>
Fixes: 0ce3ce7c275c ("event/dpaa2: add configuration functions")
Cc: stable at dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta at nxp.com>
---
drivers/event/dpaa2/dpaa2_eventdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
2.17.1
More information about the dev
mailing list