patch 'net/dpaa2: fix extract buffer preparation' has been queued to stable release 24.11.4

Kevin Traynor ktraynor at redhat.com
Fri Oct 31 15:32:22 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/05/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/443b13ab4383fafc4934d93603e2d19a9ef5c69f

Thanks.

Kevin

---
>From 443b13ab4383fafc4934d93603e2d19a9ef5c69f Mon Sep 17 00:00:00 2001
From: Jun Yang <jun.yang at nxp.com>
Date: Wed, 2 Jul 2025 15:21:40 +0530
Subject: [PATCH] net/dpaa2: fix extract buffer preparation

[ upstream commit 53bb620fa66ec89ee888573009771e0e9f279930 ]

1) The max size of extract buffer should be size of
   "struct dpni_ext_set_rx_tc_dist"(488), which is greater than 256.
2) dpkg_prepare_key_cfg is responsible to clear
   extract buffer before preparing.

Fixes: 25d0ae624245 ("net/dpaa2: check IOVA before sending MC command")

Signed-off-by: Jun Yang <jun.yang at nxp.com>
---
 drivers/net/dpaa2/dpaa2_ethdev.c | 4 ++--
 drivers/net/dpaa2/dpaa2_ethdev.h | 6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c
index a9bce854c3..528b2d305d 100644
--- a/drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/drivers/net/dpaa2/dpaa2_ethdev.c
@@ -2799,5 +2799,5 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev)
 	memset(&priv->extract.qos_key_extract, 0,
 		sizeof(struct dpaa2_key_extract));
-	priv->extract.qos_extract_param = rte_malloc(NULL,
+	priv->extract.qos_extract_param = rte_zmalloc(NULL,
 		DPAA2_EXTRACT_PARAM_MAX_SIZE,
 		RTE_CACHE_LINE_SIZE);
@@ -2810,5 +2810,5 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev)
 		memset(&priv->extract.tc_key_extract[i], 0,
 			sizeof(struct dpaa2_key_extract));
-		priv->extract.tc_extract_param[i] = rte_malloc(NULL,
+		priv->extract.tc_extract_param[i] = rte_zmalloc(NULL,
 			DPAA2_EXTRACT_PARAM_MAX_SIZE,
 			RTE_CACHE_LINE_SIZE);
diff --git a/drivers/net/dpaa2/dpaa2_ethdev.h b/drivers/net/dpaa2/dpaa2_ethdev.h
index fd3119247a..f32c31c763 100644
--- a/drivers/net/dpaa2/dpaa2_ethdev.h
+++ b/drivers/net/dpaa2/dpaa2_ethdev.h
@@ -32,5 +32,7 @@
 #define DPAA2_MAX_CHANNELS	16
 
-#define DPAA2_EXTRACT_PARAM_MAX_SIZE 256
+#define DPAA2_EXTRACT_PARAM_MAX_SIZE \
+	RTE_ALIGN(sizeof(struct dpni_ext_set_rx_tc_dist), 256)
+
 #define DPAA2_EXTRACT_ALLOC_KEY_MAX_SIZE 256
 
@@ -61,5 +63,5 @@
 
 /* Size of the input SMMU mapped memory required by MC */
-#define DIST_PARAM_IOVA_SIZE 256
+#define DIST_PARAM_IOVA_SIZE DPAA2_EXTRACT_PARAM_MAX_SIZE
 
 /* Enable TX Congestion control support
-- 
2.51.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-10-31 13:53:52.889431558 +0000
+++ 0020-net-dpaa2-fix-extract-buffer-preparation.patch	2025-10-31 13:53:52.040523381 +0000
@@ -1 +1 @@
-From 53bb620fa66ec89ee888573009771e0e9f279930 Mon Sep 17 00:00:00 2001
+From 443b13ab4383fafc4934d93603e2d19a9ef5c69f Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 53bb620fa66ec89ee888573009771e0e9f279930 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 998d1e7c53..1d11847d76 100644
+index a9bce854c3..528b2d305d 100644
@@ -24 +25 @@
-@@ -2788,5 +2788,5 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev)
+@@ -2799,5 +2799,5 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev)
@@ -31 +32 @@
-@@ -2799,5 +2799,5 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev)
+@@ -2810,5 +2810,5 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev)
@@ -39 +40 @@
-index b9dd9b22fd..b501fc091a 100644
+index fd3119247a..f32c31c763 100644



More information about the stable mailing list