event/dpaa2: fix timeout ticks
Correct timeout to tick conversion.
Fixes: 0ce3ce7c27
("event/dpaa2: add configuration functions")
Cc: stable@dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
This commit is contained in:
parent
cc7b73ea9e
commit
aad967bb3c
@ -640,7 +640,7 @@ dpaa2_eventdev_timeout_ticks(struct rte_eventdev *dev, uint64_t ns,
|
|||||||
EVENTDEV_INIT_FUNC_TRACE();
|
EVENTDEV_INIT_FUNC_TRACE();
|
||||||
|
|
||||||
RTE_SET_USED(dev);
|
RTE_SET_USED(dev);
|
||||||
*timeout_ticks = ns * scale;
|
*timeout_ticks = ns / scale;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user