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

2020-07-28 Thread Carrillo, Erik G
Hi Sarosh, Some comments in-line: > -Original Message- > From: Sarosh Arif > Sent: Friday, July 10, 2020 2:00 AM > To: rsanf...@akamai.com; Carrillo, Erik G ; > dev@dpdk.org > Cc: sta...@dpdk.org; Sarosh Arif ; > h.mikit...@gmail.com > Subject: [PATCH v3] lib/librte_timer:fix corruption

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

2020-07-10 Thread Stephen Hemminger
On Fri, 10 Jul 2020 11:59:54 +0500 Sarosh Arif wrote: > 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_re

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

2020-07-10 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