dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] test/distributor: flush with worker shutdown test fails
@ 2018-11-29 15:09 Harman Kalra
  2018-11-29 15:09 ` [PATCH 2/2] distributor: imposing additional check on no of workers Harman Kalra
  2019-01-16 19:53 ` [PATCH 1/2] test/distributor: flush with worker shutdown test fails Yigit, Ferruh
  0 siblings, 2 replies; 13+ messages in thread
From: Harman Kalra @ 2018-11-29 15:09 UTC (permalink / raw)
  To: bruce.richardson, david.hunt; +Cc: dev, Jacob,  Jerin, Kalra, Harman

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

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-07-17 20:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-29 15:09 [PATCH 1/2] test/distributor: flush with worker shutdown test fails Harman Kalra
2018-11-29 15:09 ` [PATCH 2/2] distributor: imposing additional check on no of workers Harman Kalra
2019-01-16 19:53 ` [PATCH 1/2] test/distributor: flush with worker shutdown test fails Yigit, Ferruh
2019-02-18 14:51   ` [PATCH v2 " Harman Kalra
2019-02-18 14:51     ` [PATCH v2 2/2] distributor: imposing additional check on no of workers Harman Kalra
2019-03-29 22:54     ` [PATCH v2 1/2] test/distributor: flush with worker shutdown test fails Thomas Monjalon
2019-07-04 16:11       ` [dpdk-dev] " 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

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).