From: Timothy McDaniel Date: Sun, 1 Nov 2020 23:38:03 +0000 (-0600) Subject: event/dlb2: add timeout ticks entry point X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c105e9b3acaa28153a9eaa125b14451cada37457;p=dpdk.git event/dlb2: add timeout ticks entry point Adds the timeout ticks conversion function. Signed-off-by: Timothy McDaniel Reviewed-by: Gage Eads --- diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 248296dbcf..d42e48b875 100644 --- a/drivers/event/dlb2/dlb2.c +++ b/drivers/event/dlb2/dlb2.c @@ -3689,6 +3689,18 @@ dlb2_eventdev_port_release(void *port) } } +static int +dlb2_eventdev_timeout_ticks(struct rte_eventdev *dev, uint64_t ns, + uint64_t *timeout_ticks) +{ + RTE_SET_USED(dev); + uint64_t cycles_per_ns = rte_get_timer_hz() / 1E9; + + *timeout_ticks = ns * cycles_per_ns; + + return 0; +} + static void dlb2_entry_points_init(struct rte_eventdev *dev) { @@ -3711,6 +3723,7 @@ dlb2_entry_points_init(struct rte_eventdev *dev) .port_unlink = dlb2_eventdev_port_unlink, .port_unlinks_in_progress = dlb2_eventdev_port_unlinks_in_progress, + .timeout_ticks = dlb2_eventdev_timeout_ticks, .dump = dlb2_eventdev_dump, .xstats_get = dlb2_eventdev_xstats_get, .xstats_get_names = dlb2_eventdev_xstats_get_names,