Re: [dpdk-dev] [PATCH] lib/librte_timer:fix corruption with reset

2020-07-07 Thread Stephen Hemminger
On Tue, 7 Jul 2020 14:03:20 +0500 Sarosh Arif wrote: > + struct rte_timer_data *timer_data; > + TIMER_DATA_VALID_GET_OR_ERR_RET(default_data_id, timer_data, -EINVAL); > + > + if (tim->status.state == RTE_TIMER_RUNNING && \ > + (tim->status.owner != (uint16_t)tim_lcore ||\ >

[dpdk-dev] [PATCH] lib/librte_timer:fix corruption with reset

2020-07-07 Thread Sarosh Arif
If the user tries to reset/stop some other timer in it's callback function, which is also about to expire, using rte_timer_reset_sync/rte_timer_stop_sync the application goes into an infinite loop. This happens because rte_timer_reset_sync/rte_timer_stop_sync loop until the timer resets/stops an