[dpdk-stable] patch 'examples/vmdq: fix output of pools/queues' has been queued to stable release 19.11.3

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue May 19 15:02:40 CEST 2020


Hi,

FYI, your patch has been queued to stable release 19.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 05/21/20. 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.

Thanks.

Luca Boccassi

---
>From 1b70d8acd01e494549765f8968ce348bb376583c Mon Sep 17 00:00:00 2001
From: Junyu Jiang <junyux.jiang at intel.com>
Date: Mon, 2 Mar 2020 06:41:21 +0000
Subject: [PATCH] examples/vmdq: fix output of pools/queues

[ upstream commit 70c37e32083468e0496e5b12dbdd99d7a95d8b15 ]

To match the pools/queues configuration, the pools/queues output
should start from VMDQ base queue. This patch fixed the issue.

Fixes: 6bb97df521aa ("examples/vmdq: new app")

Signed-off-by: Junyu Jiang <junyux.jiang at intel.com>
Acked-by: Xiaoyun Li <xiaoyun.li at intel.com>
Tested-by: Yingya Han <yingyax.han at intel.com>
---
 examples/vmdq/main.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c
index 6e6fc91ec0..74fe9a16ee 100644
--- a/examples/vmdq/main.c
+++ b/examples/vmdq/main.c
@@ -441,10 +441,11 @@ update_mac_address(struct rte_mbuf *m, unsigned dst_port)
 static void
 sighup_handler(int signum)
 {
-	unsigned q;
-	for (q = 0; q < num_queues; q++) {
-		if (q % (num_queues/num_pools) == 0)
-			printf("\nPool %u: ", q/(num_queues/num_pools));
+	unsigned int q = vmdq_queue_base;
+	for (; q < num_queues; q++) {
+		if ((q - vmdq_queue_base) % (num_vmdq_queues / num_pools) == 0)
+			printf("\nPool %u: ", (q - vmdq_queue_base) /
+			       (num_vmdq_queues / num_pools));
 		printf("%lu ", rxPackets[q]);
 	}
 	printf("\nFinished handling signal %d\n", signum);
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-05-19 14:04:45.642698221 +0100
+++ 0025-examples-vmdq-fix-output-of-pools-queues.patch	2020-05-19 14:04:44.160647358 +0100
@@ -1,13 +1,14 @@
-From 70c37e32083468e0496e5b12dbdd99d7a95d8b15 Mon Sep 17 00:00:00 2001
+From 1b70d8acd01e494549765f8968ce348bb376583c Mon Sep 17 00:00:00 2001
 From: Junyu Jiang <junyux.jiang at intel.com>
 Date: Mon, 2 Mar 2020 06:41:21 +0000
 Subject: [PATCH] examples/vmdq: fix output of pools/queues
 
+[ upstream commit 70c37e32083468e0496e5b12dbdd99d7a95d8b15 ]
+
 To match the pools/queues configuration, the pools/queues output
 should start from VMDQ base queue. This patch fixed the issue.
 
 Fixes: 6bb97df521aa ("examples/vmdq: new app")
-Cc: stable at dpdk.org
 
 Signed-off-by: Junyu Jiang <junyux.jiang at intel.com>
 Acked-by: Xiaoyun Li <xiaoyun.li at intel.com>
@@ -17,7 +18,7 @@
  1 file changed, 5 insertions(+), 4 deletions(-)
 
 diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c
-index 67aa558887..a66dd533c8 100644
+index 6e6fc91ec0..74fe9a16ee 100644
 --- a/examples/vmdq/main.c
 +++ b/examples/vmdq/main.c
 @@ -441,10 +441,11 @@ update_mac_address(struct rte_mbuf *m, unsigned dst_port)


More information about the stable mailing list