From: Nipun Gupta Date: Thu, 27 Jun 2019 09:36:04 +0000 (+0530) Subject: event/dpaa2: fix timeout ticks X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=aad967bb3c5605d1fb5d6ea81c0c6157eb3e37a0;p=dpdk.git 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 --- 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; }