patch 'examples/qos_sched: fix unused variables' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 13:59:38 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/5b1f0a40fc1ce497a46c9379251ce75c5605ac27

Thanks.

Kevin

---
>From 5b1f0a40fc1ce497a46c9379251ce75c5605ac27 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Thu, 3 Sep 2026 12:04:03 -0700
Subject: [PATCH] examples/qos_sched: fix unused variables

[ upstream commit bade69e754aa118cf1c4d6266d3ffba919a45a60 ]

The QoS sched example tracks numa and port mask but never
uses them. Remove the dead code.

clang 23 reports:
qos_sched/args.c:26:17: error: variable 'app_numa_mask' set but not used
	 [-Werror,-Wunused-but-set-global]

Fixes: de3cfa2c9823 ("sched: initial import")

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 examples/qos_sched/args.c | 5 -----
 examples/qos_sched/init.c | 1 -
 2 files changed, 6 deletions(-)

diff --git a/examples/qos_sched/args.c b/examples/qos_sched/args.c
index 886542b3c1..04e2a0e03c 100644
--- a/examples/qos_sched/args.c
+++ b/examples/qos_sched/args.c
@@ -24,6 +24,4 @@
 
 static uint32_t app_main_core = 1;
-static uint32_t app_numa_mask;
-static uint64_t app_used_port_mask = 0;
 static uint64_t app_used_rx_port_mask = 0;
 static uint64_t app_used_tx_port_mask = 0;
@@ -215,5 +213,4 @@ app_parse_flow_conf(const char *conf_str)
 	}
 	app_used_rx_port_mask |= mask;
-	app_used_port_mask |= mask;
 
 	mask = 1lu << pconf->tx_port;
@@ -224,5 +221,4 @@ app_parse_flow_conf(const char *conf_str)
 	}
 	app_used_tx_port_mask |= mask;
-	app_used_port_mask |= mask;
 
 	nb_pfc++;
@@ -405,5 +401,4 @@ app_parse_args(int argc, char **argv)
 			return -1;
 		}
-		app_numa_mask |= 1 << rte_lcore_to_socket_id(qos_conf[i].rx_core);
 	}
 
diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c
index ace7279c67..d22f260430 100644
--- a/examples/qos_sched/init.c
+++ b/examples/qos_sched/init.c
@@ -20,5 +20,4 @@
 #include "cfg_file.h"
 
-uint32_t app_numa_mask = 0;
 static uint32_t app_inited_port_mask = 0;
 
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:40.799832872 +0000
+++ 0052-examples-qos_sched-fix-unused-variables.patch	2026-12-03 12:52:39.050047677 +0000
@@ -1 +1 @@
-From bade69e754aa118cf1c4d6266d3ffba919a45a60 Mon Sep 17 00:00:00 2001
+From 5b1f0a40fc1ce497a46c9379251ce75c5605ac27 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit bade69e754aa118cf1c4d6266d3ffba919a45a60 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -52 +53 @@
-index 561f9e0619..9f4b2e0082 100644
+index ace7279c67..d22f260430 100644



More information about the stable mailing list