Re: [dpdk-dev] Stopping DPDK Timer [RTE-Timers]

2019-09-02 Thread Stephen Hemminger
On Tue, 3 Sep 2019 10:21:17 +0530 Suraj R Gupta wrote: > These are the links to Timers documentation. > https://doc.dpdk.org/api/rte__timer_8h.html > https://doc.dpdk.org/guides/prog_guide/timer_lib.html > > As per my understanding of the documentation, > PENDING means timer is scheduled to run

Re: [dpdk-dev] Stopping DPDK Timer [RTE-Timers]

2019-09-02 Thread Suraj R Gupta
These are the links to Timers documentation. https://doc.dpdk.org/api/rte__timer_8h.html https://doc.dpdk.org/guides/prog_guide/timer_lib.html As per my understanding of the documentation, PENDING means timer is scheduled to run but not started.(in a list) RUNNING means timer is presently running

Re: [dpdk-dev] Stopping DPDK Timer [RTE-Timers]

2019-09-02 Thread Bruce Richardson
On Mon, Sep 02, 2019 at 05:12:36PM +0530, Suraj R Gupta wrote: >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 stop

Re: [dpdk-dev] Stopping DPDK Timer [RTE-Timers]

2019-09-02 Thread Suraj R Gupta
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 10

Re: [dpdk-dev] Stopping DPDK Timer [RTE-Timers]

2019-09-02 Thread Bruce Richardson
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 i

[dpdk-dev] Stopping DPDK Timer [RTE-Timers]

2019-09-01 Thread Suraj R Gupta
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