From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 54163A00E6 for ; Mon, 2 Sep 2019 13:22:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7BDCA1E895; Mon, 2 Sep 2019 13:22:23 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id EE3141E56B; Mon, 2 Sep 2019 13:22:20 +0200 (CEST) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Sep 2019 04:22:19 -0700 X-IronPort-AV: E=Sophos;i="5.64,459,1559545200"; d="scan'208";a="172906393" Received: from bricha3-mobl.ger.corp.intel.com ([10.237.221.46]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Sep 2019 04:22:18 -0700 Date: Mon, 2 Sep 2019 12:22:15 +0100 From: Bruce Richardson To: Suraj R Gupta Cc: users@dpdk.org, dev@dpdk.org Message-ID: <20190902112214.GA631@bricha3-MOBL.ger.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Subject: Re: [dpdk-dev] Stopping DPDK Timer [RTE-Timers] X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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