Skip to content

Commit

Permalink
event/cnxk: fix nanoseconds to ticks conversion
Browse files Browse the repository at this point in the history
[ upstream commit 8fecf1febf2c7914f642c50bc03f7860c1787426 ]

The number of timeout ticks is dependent on the global dequeue
timeout configured.

Fixes: 6223ede ("event/cnxk: add event port link and unlink")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
  • Loading branch information
PavanNikhilesh authored and kevintraynor committed Jul 11, 2023
1 parent 44a0ae7 commit 15aac36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/event/cnxk/cnxk_eventdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,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;
}

Expand Down

0 comments on commit 15aac36

Please sign in to comment.