patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Stephen Hemminger <>
To: Sarosh Arif <>
Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v3] lib/librte_timer:fix corruption with reset
Date: Fri, 10 Jul 2020 08:19:10 -0700
Message-ID: <20200710081910.442d3248@hermes.lan> (raw)
In-Reply-To: <>

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_reset_sync/rte_timer_stop_sync loop until the timer 
> resets/stops and there is check inside timer_set_config_state which
> prevents a running timer from being reset/stopped by not it's own 
> timer_cb. Therefore timer_set_config_state returns -1 due to which 
> rte_timer_reset returns -1 and rte_timer_reset_sync goes into an 
> infinite loop. 
> The soloution to this problem is to return -1 from 
> rte_timer_reset_sync/rte_timer_stop_sync in case the user tries to 
> reset/stop some other timer in it's callback function.
> Bugzilla ID: 491
> Fixes: 20d159f20543 ("timer: fix corruption with reset")
> Cc:
> Signed-off-by: Sarosh Arif <>
> ---
> v2: remove line continuations
> v3: separate code and declarations

If you want to change the return value, you need to go through the steps
in the API/ABI policy. Maybe even symbol versioning.

Sorry, I know it is painful but we committed to the rules.
And changing the return value can never go to stable.

      reply	other threads:[~2020-07-10 15:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-07  9:03 [dpdk-stable] [PATCH] " Sarosh Arif
2020-07-07 16:09 ` [dpdk-stable] [dpdk-dev] " Stephen Hemminger
2020-07-08  5:06 ` [dpdk-stable] [PATCH v2] " Sarosh Arif
2020-07-08 15:07   ` [dpdk-stable] [dpdk-dev] " Stephen Hemminger
2020-07-09  7:05     ` Sarosh Arif
2020-07-08 15:08   ` Stephen Hemminger
2020-07-09  7:02     ` Sarosh Arif
2020-07-10  6:59 ` [dpdk-stable] [PATCH v3] " Sarosh Arif
2020-07-10 15:19   ` Stephen Hemminger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200710081910.442d3248@hermes.lan \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ \
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone