patch 'app/testpmd: fix DCB Tx port' has been queued to stable release 24.11.4
Kevin Traynor
ktraynor at redhat.com
Fri Nov 21 12:20:24 CET 2025
Hi,
FYI, your patch has been queued to stable release 24.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 11/26/25. 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/15f169c2c91ef6092650ca62e78e2dfc2c05357e
Thanks.
Kevin
---
>From 15f169c2c91ef6092650ca62e78e2dfc2c05357e Mon Sep 17 00:00:00 2001
From: Chengwen Feng <fengchengwen at huawei.com>
Date: Thu, 6 Nov 2025 08:29:19 +0800
Subject: [PATCH] app/testpmd: fix DCB Tx port
[ upstream commit 47012b7cbf78531e99b6ab3faa3a69e941ddbaa0 ]
The txp maybe invalid (e.g. start with only one port but set with 1),
this commit fix it by get txp from fwd_topology_tx_port_get() function.
An added benefit is that the DCB test also supports '--port-topology'
parameter.
Fixes: 1a572499beb6 ("app/testpmd: setup DCB forwarding based on traffic class")
Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
---
app/test-pmd/config.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 4c10047754..a28b589b0a 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -5167,5 +5167,5 @@ dcb_fwd_config_setup(void)
init_fwd_streams();
sm_id = 0;
- txp = 1;
+ txp = fwd_topology_tx_port_get(rxp);
/* get the dcb info on the first RX and TX ports */
(void)rte_eth_dev_get_dcb_info(fwd_ports_ids[rxp], &rxp_dcb_info);
@@ -5215,9 +5215,6 @@ dcb_fwd_config_setup(void)
if (rxp >= nb_fwd_ports)
return;
+ txp = fwd_topology_tx_port_get(rxp);
/* get the dcb information on next RX and TX ports */
- if ((rxp & 0x1) == 0)
- txp = (portid_t) (rxp + 1);
- else
- txp = (portid_t) (rxp - 1);
rte_eth_dev_get_dcb_info(fwd_ports_ids[rxp], &rxp_dcb_info);
rte_eth_dev_get_dcb_info(fwd_ports_ids[txp], &txp_dcb_info);
--
2.51.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-11-21 11:05:10.838308534 +0000
+++ 0040-app-testpmd-fix-DCB-Tx-port.patch 2025-11-21 11:05:09.438201063 +0000
@@ -1 +1 @@
-From 47012b7cbf78531e99b6ab3faa3a69e941ddbaa0 Mon Sep 17 00:00:00 2001
+From 15f169c2c91ef6092650ca62e78e2dfc2c05357e Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 47012b7cbf78531e99b6ab3faa3a69e941ddbaa0 ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 3ce2a14a1b..0f687018c7 100644
+index 4c10047754..a28b589b0a 100644
@@ -24 +25 @@
-@@ -5188,5 +5188,5 @@ dcb_fwd_config_setup(void)
+@@ -5167,5 +5167,5 @@ dcb_fwd_config_setup(void)
@@ -31 +32 @@
-@@ -5236,9 +5236,6 @@ dcb_fwd_config_setup(void)
+@@ -5215,9 +5215,6 @@ dcb_fwd_config_setup(void)
More information about the stable
mailing list