DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Sanford, Robert" <rsanford@akamai.com>
To: Hiroyuki Mikita <h.mikita89@gmail.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	Thomas Monjalon <thomas.monjalon@6wind.com>
Subject: Re: [dpdk-dev] [PATCH] timer: remove unnecessary timer add call
Date: Fri, 22 Jul 2016 22:06:42 +0000	[thread overview]
Message-ID: <D3B810DC.14468%rsanford@akamai.com> (raw)
In-Reply-To: <1468776950-32693-1-git-send-email-h.mikita89@gmail.com>



On 7/17/16 1:35 PM, "Hiroyuki Mikita" <h.mikita89@gmail.com> wrote:

>When timer_set_running_state() fails in rte_timer_manage(),
>the failed timer is put back on pending-list.
>In this case, another core tries to reset or stop the timer.
>It does not need to be on pending-list
>
>Signed-off-by: Hiroyuki Mikita <h.mikita89@gmail.com>
>---
> lib/librte_timer/rte_timer.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
>diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c
>index 3dcdab5..94878d3 100644
>--- a/lib/librte_timer/rte_timer.c
>+++ b/lib/librte_timer/rte_timer.c
>@@ -562,10 +562,9 @@ void rte_timer_manage(void)
> 			pprev = &tim->sl_next[0];
> 		} else {
> 			/* another core is trying to re-config this one,
>-			 * remove it from local expired list and put it
>-			 * back on the priv_timer[] skip list */
>+			 * remove it from local expired list
>+			 */
> 			*pprev = next_tim;
>-			timer_add(tim, lcore_id, 1);
> 		}
> 	}
> 
>-- 
>2.7.4
>

Acked-by: Robert Sanford <rsanford@akamai.com>

  reply	other threads:[~2016-07-22 22:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-17 17:35 Hiroyuki Mikita
2016-07-22 22:06 ` Sanford, Robert [this message]
2016-07-25 15:15   ` Hiroyuki Mikita
2016-07-25 15:50     ` Thomas Monjalon

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=D3B810DC.14468%rsanford@akamai.com \
    --to=rsanford@akamai.com \
    --cc=dev@dpdk.org \
    --cc=h.mikita89@gmail.com \
    --cc=thomas.monjalon@6wind.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).