patch 'test/distributor: remove unused counter' has been queued to stable release 19.11.11

christian.ehrhardt at canonical.com christian.ehrhardt at canonical.com
Tue Nov 30 17:35:43 CET 2021


Hi,

FYI, your patch has been queued to stable release 19.11.11

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before December 10th 2021. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/cpaelzer/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/cpaelzer/dpdk-stable-queue/commit/78665353d69fdb904e1d7a5a74b13a5919643087

Thanks.

Christian Ehrhardt <christian.ehrhardt at canonical.com>

---
>From 78665353d69fdb904e1d7a5a74b13a5919643087 Mon Sep 17 00:00:00 2001
From: Conor Walsh <conor.walsh at intel.com>
Date: Mon, 15 Nov 2021 17:58:50 +0000
Subject: [PATCH] test/distributor: remove unused counter

[ upstream commit ccbdaaa9815259f5af3b6cd3be6ba6eb8ffc4b5b ]

Reported by clang 13.
This patch fixes unused but set variables in the distributor test perf.

Bugzilla ID: 881
Fixes: c0de0eb82e40 ("distributor: switch over to new API")

Reported-by: Liang Longfeng <longfengx.liang at intel.com>
Signed-off-by: Conor Walsh <conor.walsh at intel.com>
Reviewed-by: David Marchand <david.marchand at redhat.com>
---
 app/test/test_distributor_perf.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/app/test/test_distributor_perf.c b/app/test/test_distributor_perf.c
index 1f5db4c533..2441231e49 100644
--- a/app/test/test_distributor_perf.c
+++ b/app/test/test_distributor_perf.c
@@ -108,7 +108,6 @@ static int
 handle_work(void *arg)
 {
 	struct rte_distributor *d = arg;
-	unsigned int count = 0;
 	unsigned int num = 0;
 	int i;
 	unsigned int id = __atomic_fetch_add(&worker_idx, 1, __ATOMIC_RELAXED);
@@ -120,11 +119,9 @@ handle_work(void *arg)
 	num = rte_distributor_get_pkt(d, id, buf, buf, num);
 	while (!quit) {
 		worker_stats[id].handled_packets += num;
-		count += num;
 		num = rte_distributor_get_pkt(d, id, buf, buf, num);
 	}
 	worker_stats[id].handled_packets += num;
-	count += num;
 	rte_distributor_return_pkt(d, id, buf, num);
 	return 0;
 }
-- 
2.34.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-11-30 16:50:13.950106343 +0100
+++ 0139-test-distributor-remove-unused-counter.patch	2021-11-30 16:50:05.978874910 +0100
@@ -1 +1 @@
-From ccbdaaa9815259f5af3b6cd3be6ba6eb8ffc4b5b Mon Sep 17 00:00:00 2001
+From 78665353d69fdb904e1d7a5a74b13a5919643087 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit ccbdaaa9815259f5af3b6cd3be6ba6eb8ffc4b5b ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index fdbeae6d2f..92e330f194 100644
+index 1f5db4c533..2441231e49 100644


More information about the stable mailing list