[dpdk-dev] [PATCH v4 21/22] event/dlb: add timeout ticks entry point
Eads, Gage
gage.eads at intel.com
Fri Oct 9 00:01:25 CEST 2020
> -----Original Message-----
> From: McDaniel, Timothy <timothy.mcdaniel at intel.com>
> Sent: Friday, September 11, 2020 2:19 PM
> Cc: dev at dpdk.org; Carrillo, Erik G <erik.g.carrillo at intel.com>; Eads, Gage
> <gage.eads at intel.com>; Van Haaren, Harry <harry.van.haaren at intel.com>;
> jerinj at marvell.com
> Subject: [PATCH v4 21/22] event/dlb: add timeout ticks entry point
>
> Adds the timeout ticks conversion function.
>
> Signed-off-by: Timothy McDaniel <timothy.mcdaniel at intel.com>
> ---
> drivers/event/dlb/dlb.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/drivers/event/dlb/dlb.c b/drivers/event/dlb/dlb.c
> index d9613ce..b7fa0ca 100644
> --- a/drivers/event/dlb/dlb.c
> +++ b/drivers/event/dlb/dlb.c
> @@ -3895,6 +3895,18 @@ dlb_eventdev_queue_release(struct rte_eventdev
> *dev, uint8_t id)
> */
> }
>
> +static int
> +dlb_eventdev_timeout_ticks(struct rte_eventdev *dev, uint64_t ns,
> + uint64_t *timeout_ticks)
> +{
> + RTE_SET_USED(dev);
> + uint64_t cycles_per_ns = cycles_per_ns = rte_get_timer_hz() / 1E9;
I'm a little surprised GCC allowed this :P. With that self-assignment fixed:
Reviewed-by: Gage Eads <gage.eads at intel.com>
Thanks,
Gage
More information about the dev
mailing list