From aad967bb3c5605d1fb5d6ea81c0c6157eb3e37a0 Mon Sep 17 00:00:00 2001 From: Nipun Gupta Date: Thu, 27 Jun 2019 15:06:04 +0530 Subject: [PATCH] event/dpaa2: fix timeout ticks Correct timeout to tick conversion. Fixes: 0ce3ce7c275c ("event/dpaa2: add configuration functions") Cc: stable@dpdk.org Signed-off-by: Nipun Gupta --- 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 8d168b0287..926b7edd84 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.20.1