On Wed, May 24, 2023 at 2:22 PM <pbhagavat...@marvell.com> wrote:
>
> From: Pavan Nikhilesh <pbhagavat...@marvell.com>
>
> The number of timeout ticks is dependent on the global dequeue
> timeout configured.
>
> Fixes: 6223ede20361 ("event/cnxk: add event port link and unlink")
>
> Signed-off-by: Pavan Nikhilesh <pbhagavat...@marvell.com>

Series applied to dpdk-next-net-eventdev/for-main. Thanks


> ---
>  drivers/event/cnxk/cnxk_eventdev.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/event/cnxk/cnxk_eventdev.c 
> b/drivers/event/cnxk/cnxk_eventdev.c
> index 99f9cdcd0d..3a05a59c75 100644
> --- a/drivers/event/cnxk/cnxk_eventdev.c
> +++ b/drivers/event/cnxk/cnxk_eventdev.c
> @@ -323,9 +323,9 @@ int
>  cnxk_sso_timeout_ticks(struct rte_eventdev *event_dev, uint64_t ns,
>                        uint64_t *tmo_ticks)
>  {
> -       RTE_SET_USED(event_dev);
> -       *tmo_ticks = NSEC2TICK(ns, rte_get_timer_hz());
> +       struct cnxk_sso_evdev *dev = cnxk_sso_pmd_priv(event_dev);
>
> +       *tmo_ticks = dev->deq_tmo_ns ? ns / dev->deq_tmo_ns : 0;
>         return 0;
>  }
>
> --
> 2.25.1
>

Reply via email to