patch 'examples/qos_sched: fix debug mode' has been queued to stable release 21.11.4

Kevin Traynor ktraynor at redhat.com
Thu Feb 23 16:05:12 CET 2023


Hi,

FYI, your patch has been queued to stable release 21.11.4

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

Thanks.

Kevin

---
>From dce447af759a98f51145dec6f7328c48761422ce Mon Sep 17 00:00:00 2001
From: Megha Ajmera <megha.ajmera at intel.com>
Date: Thu, 5 Jan 2023 12:28:53 +0000
Subject: [PATCH] examples/qos_sched: fix debug mode
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[ upstream commit af13b8711aa43a851d2c12e5d3f8f87dd047307e ]

This issue is happening due to non-initialization of some
fields in “rte_eth_rxconf” structure in our application.
Doing a memset to zero before initialization in HQoS application.

Fixes: de3cfa2c9823 ("sched: initial import")

Signed-off-by: Megha Ajmera <megha.ajmera at intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>
---
 examples/qos_sched/init.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c
index 3c1f0bc680..e912ca4f6c 100644
--- a/examples/qos_sched/init.c
+++ b/examples/qos_sched/init.c
@@ -82,4 +82,5 @@ app_init_port(uint16_t portid, struct rte_mempool *mp)
 		return 0;
 
+	memset(&rx_conf, 0, sizeof(struct rte_eth_rxconf));
 	rx_conf.rx_thresh.pthresh = rx_thresh.pthresh;
 	rx_conf.rx_thresh.hthresh = rx_thresh.hthresh;
@@ -89,4 +90,5 @@ app_init_port(uint16_t portid, struct rte_mempool *mp)
 	rx_conf.rx_deferred_start = 0;
 
+	memset(&tx_conf, 0, sizeof(struct rte_eth_txconf));
 	tx_conf.tx_thresh.pthresh = tx_thresh.pthresh;
 	tx_conf.tx_thresh.hthresh = tx_thresh.hthresh;
-- 
2.39.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-02-23 14:46:24.356518108 +0000
+++ 0021-examples-qos_sched-fix-debug-mode.patch	2023-02-23 14:46:23.728235819 +0000
@@ -1 +1 @@
-From af13b8711aa43a851d2c12e5d3f8f87dd047307e Mon Sep 17 00:00:00 2001
+From dce447af759a98f51145dec6f7328c48761422ce Mon Sep 17 00:00:00 2001
@@ -8,0 +9,2 @@
+[ upstream commit af13b8711aa43a851d2c12e5d3f8f87dd047307e ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index 0709aec10c..d28350e14a 100644
+index 3c1f0bc680..e912ca4f6c 100644
@@ -26 +27 @@
-@@ -80,4 +80,5 @@ app_init_port(uint16_t portid, struct rte_mempool *mp)
+@@ -82,4 +82,5 @@ app_init_port(uint16_t portid, struct rte_mempool *mp)
@@ -32 +33 @@
-@@ -87,4 +88,5 @@ app_init_port(uint16_t portid, struct rte_mempool *mp)
+@@ -89,4 +90,5 @@ app_init_port(uint16_t portid, struct rte_mempool *mp)



More information about the stable mailing list