DPDK patches and discussions
 help / color / mirror / Atom feed
From: Harman Kalra <harman.kalra@caviumnetworks.com>
To: "bruce.richardson@intel.com" <bruce.richardson@intel.com>,
	"david.hunt@intel.com" <david.hunt@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
	"Jacob,  Jerin" <Jerin.JacobKollanukkaran@cavium.com>,
	"Kalra, Harman" <Harman.Kalra@cavium.com>
Subject: [dpdk-dev] [PATCH 1/2] test/distributor: flush with worker shutdown test fails
Date: Thu, 29 Nov 2018 15:09:10 +0000	[thread overview]
Message-ID: <1543504135-137867-1-git-send-email-harman.kalra@caviumnetworks.com> (raw)

From: Harman Kalra <harman.kalra@cavium.com>

On restarting worker 0 after shutdown, packets handled by
worker 0 must be incremented only when a packet is received by
it.

Signed-off-by: Harman Kalra <harman.kalra@cavium.com>
---
 test/test/test_distributor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git test/test/test_distributor.c test/test/test_distributor.c
index 98919ec..a723254 100644
--- test/test/test_distributor.c
+++ test/test/test_distributor.c
@@ -373,7 +373,8 @@ struct worker_stats {
 				id, buf, buf, num);
 
 		while (!quit) {
-			worker_stats[id].handled_packets++, count++;
+			worker_stats[id].handled_packets += num;
+			count += num;
 			rte_pktmbuf_free(pkt);
 			num = rte_distributor_get_pkt(d, id, buf, buf, num);
 		}
-- 
1.8.3.1

             reply	other threads:[~2018-11-29 15:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-29 15:09 Harman Kalra [this message]
2018-11-29 15:09 ` [dpdk-dev] [PATCH 2/2] distributor: imposing additional check on no of workers Harman Kalra
2019-01-16 19:53 ` [dpdk-dev] [PATCH 1/2] test/distributor: flush with worker shutdown test fails Yigit, Ferruh
2019-02-18 14:51   ` [dpdk-dev] [PATCH v2 " Harman Kalra
2019-02-18 14:51     ` [dpdk-dev] [PATCH v2 2/2] distributor: imposing additional check on no of workers Harman Kalra
2019-03-29 22:54     ` [dpdk-dev] [PATCH v2 1/2] test/distributor: flush with worker shutdown test fails Thomas Monjalon
2019-03-29 22:54       ` Thomas Monjalon
2019-07-04 16:11       ` Thomas Monjalon
2019-07-05 10:05         ` [dpdk-dev] [PATCH v3 1/2] test/distributor: fix flush with worker shutdown test Harman Kalra
2019-07-05 10:05           ` [dpdk-dev] [PATCH v3 2/2] distributor: fix additional check on no of workers Harman Kalra
2019-07-16 10:51             ` [dpdk-dev] [dpdk-stable] " Thomas Monjalon
2019-07-17 15:32             ` [dpdk-dev] " Hunt, David
2019-07-17 20:37               ` Thomas Monjalon
2019-07-17 15:30           ` [dpdk-dev] [PATCH v3 1/2] test/distributor: fix flush with worker shutdown test Hunt, David

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=1543504135-137867-1-git-send-email-harman.kalra@caviumnetworks.com \
    --to=harman.kalra@caviumnetworks.com \
    --cc=Harman.Kalra@cavium.com \
    --cc=Jerin.JacobKollanukkaran@cavium.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.hunt@intel.com \
    --cc=dev@dpdk.org \
    /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).