Hi, If I am right, rte_timer_stop() stops the timer after the call back execution. It is said that if rte_timer_stop() is called during timer running, function will fail.
I want to know if timer can be stopped in middle abruptly? i.e If I have timer started for 500 ms and i want to stop it in 100ms Thanks On Mon, Sep 2, 2019 at 4:52 PM Bruce Richardson <bruce.richard...@intel.com> wrote: > On Mon, Sep 02, 2019 at 11:02:16AM +0530, Suraj R Gupta wrote: > > Hi all, > > I am working with DPDK timers. > > In the documentation of timers, it has been said that dpdk based > rte-timers > > cannot stopped while running. I would like to know if there is any way to > > stop it in middle or any workaround is possible. > > > > For e.g.: If I have timer started for 500 ms and i want to stop it in > 100 > > ms due to an event/interrupt. > > > > Note:I am not talking of stopping timer after callback execution, before > > timer expiry in middle > > Thanks in advance. > > > I think rte_timer_stop() is what you are looking for. > > /Bruce > -- Thanks and Regards Suraj R Gupta