patch 'examples/vhost: remove unused variables' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 13:59:39 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

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

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/4e033ba76290b785c17deb959e12f9d8a17a3580

Thanks.

Kevin

---
>From 4e033ba76290b785c17deb959e12f9d8a17a3580 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Thu, 3 Sep 2026 12:08:36 -0700
Subject: [PATCH] examples/vhost: remove unused variables

[ upstream commit a7a67def7bd5e82c311d330f768a712f6613313b ]

The vhost example tracks number of queues but never uses the
variables. Remove num_queues and the num_vmdq_queues intermediate
that only fed it.

clang 23 reports:
vhost/main.c:86:17: error: variable 'num_queues' set but not used
         [-Werror,-Wunused-but-set-global]

Fixes: 84b02d16c539 ("examples/vhost: support new VMDQ API for i40e")

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 examples/vhost/main.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/examples/vhost/main.c b/examples/vhost/main.c
index 4391d88c3d..0e97277823 100644
--- a/examples/vhost/main.c
+++ b/examples/vhost/main.c
@@ -83,6 +83,5 @@ static uint32_t enabled_port_mask = 0;
 static uint32_t promiscuous;
 
-/* number of devices/queues to support*/
-static uint32_t num_queues = 0;
+/* number of devices to support */
 static uint32_t num_devices;
 
@@ -164,5 +163,5 @@ static unsigned lcore_ids[RTE_MAX_LCORE];
 static uint16_t ports[RTE_MAX_ETHPORTS];
 static unsigned num_ports = 0; /**< The number of ports specified in command line */
-static uint16_t num_pf_queues, num_vmdq_queues;
+static uint16_t num_pf_queues;
 static uint16_t vmdq_pool_base, vmdq_queue_base;
 static uint16_t queues_per_pool;
@@ -468,6 +467,4 @@ port_init(uint16_t port)
 	num_pf_queues = dev_info.max_rx_queues - dev_info.vmdq_queue_num;
 	queues_per_pool = dev_info.vmdq_queue_num / dev_info.max_vmdq_pools;
-	num_vmdq_queues = num_devices * queues_per_pool;
-	num_queues = num_pf_queues + num_vmdq_queues;
 	vmdq_queue_base = dev_info.vmdq_queue_base;
 	vmdq_pool_base  = dev_info.vmdq_pool_base;
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:40.827532868 +0000
+++ 0053-examples-vhost-remove-unused-variables.patch	2026-12-03 12:52:39.050782665 +0000
@@ -1 +1 @@
-From a7a67def7bd5e82c311d330f768a712f6613313b Mon Sep 17 00:00:00 2001
+From 4e033ba76290b785c17deb959e12f9d8a17a3580 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit a7a67def7bd5e82c311d330f768a712f6613313b ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index 5978a50cfe..114e5f547c 100644
+index 4391d88c3d..0e97277823 100644
@@ -34 +35 @@
-@@ -163,5 +162,5 @@ static unsigned lcore_ids[RTE_MAX_LCORE];
+@@ -164,5 +163,5 @@ static unsigned lcore_ids[RTE_MAX_LCORE];
@@ -41 +42 @@
-@@ -466,6 +465,4 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)
+@@ -468,6 +467,4 @@ port_init(uint16_t port)



More information about the stable mailing list