DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/vmdq: fix the output of pools/queues
@ 2020-02-26  7:57 Junyu Jiang
  2020-02-26  8:35 ` [dpdk-dev] [PATCH v2] " Junyu Jiang
  0 siblings, 1 reply; 8+ messages in thread
From: Junyu Jiang @ 2020-02-26  7:57 UTC (permalink / raw)
  To: dev; +Cc: Xiaoyun Li, Junyu Jiang, stable

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@dpdk.org

Signed-off-by: Junyu Jiang <junyux.jiang@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 011110920..592f9bc62 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 q = vmdq_queue_base;;
+	for (; q < num_queues; q++) {
+		if (q % (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.17.1


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

end of thread, other threads:[~2020-03-31 14:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-26  7:57 [dpdk-dev] [PATCH] examples/vmdq: fix the output of pools/queues Junyu Jiang
2020-02-26  8:35 ` [dpdk-dev] [PATCH v2] " Junyu Jiang
2020-03-02  2:35   ` Yang, Qiming
2020-03-02  3:10   ` Li, Xiaoyun
2020-03-02  6:41   ` [dpdk-dev] [PATCH v3] " Junyu Jiang
2020-03-02  7:19     ` Li, Xiaoyun
2020-03-30  2:21       ` [dpdk-dev] [dpdk-stable] " Han, YingyaX
2020-03-31 14:35         ` Ferruh Yigit

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