Re: [PATCH v3] eventdev/timer: fix overflow issue

2023-02-09 Thread Jerin Jacob
On Thu, Feb 9, 2023 at 8:44 PM Erik Gabriel Carrillo wrote: > > The software timer adapter converts event timer timeout ticks to a > number of TSC cycles at which an rte_timer should expire. The > computation uses an integer multiplication that can result in overflow. > > If necessary, reduce the

[PATCH v3] eventdev/timer: fix overflow issue

2023-02-09 Thread Erik Gabriel Carrillo
The software timer adapter converts event timer timeout ticks to a number of TSC cycles at which an rte_timer should expire. The computation uses an integer multiplication that can result in overflow. If necessary, reduce the timeout_nsecs value by the number of whole seconds it contains to keep t