patch 'ml/cnxk: fix overwriting layer name during load' has been queued to stable release 24.11.7

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jul 6 12:20:12 CEST 2026


Hi,

FYI, your patch has been queued to stable release 24.11.7

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

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/d89628fb858f6da4e5386aa0ae6bf6faa65f40f0

Thanks.

Luca Boccassi

---
>From d89628fb858f6da4e5386aa0ae6bf6faa65f40f0 Mon Sep 17 00:00:00 2001
From: Srikanth Yalavarthi <syalavarthi at marvell.com>
Date: Tue, 9 Jun 2026 09:22:51 +0530
Subject: [PATCH] ml/cnxk: fix overwriting layer name during load

[ upstream commit 99b2d58abfc42177c2f3f72c0582465954d996ee ]

Layer name is initialized during metadata fetch and parsing
stage and should not be overwritten during model load. Fix
overwriting the layer name during layer load.

Fixes: cc254869ae19 ("ml/cnxk: update model load/unload functions")

Signed-off-by: Srikanth Yalavarthi <syalavarthi at marvell.com>
---
 drivers/ml/cnxk/cn10k_ml_ops.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/ml/cnxk/cn10k_ml_ops.c b/drivers/ml/cnxk/cn10k_ml_ops.c
index b30af7c7a4..cb9e656144 100644
--- a/drivers/ml/cnxk/cn10k_ml_ops.c
+++ b/drivers/ml/cnxk/cn10k_ml_ops.c
@@ -671,9 +671,6 @@ cn10k_ml_layer_load(void *device, uint16_t model_id, const char *layer_name, uin
 	rte_memcpy(&layer->glow.metadata, buffer, sizeof(struct cn10k_ml_model_metadata));
 	cn10k_ml_model_metadata_update(&layer->glow.metadata);
 
-	/* Set layer name */
-	rte_memcpy(layer->name, layer->glow.metadata.model.name, MRVL_ML_MODEL_NAME_LEN);
-
 	/* Enable support for batch_size of 256 */
 	if (layer->glow.metadata.model.batch_size == 0)
 		layer->batch_size = 256;
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-03 12:55:47.477948019 +0100
+++ 0020-ml-cnxk-fix-overwriting-layer-name-during-load.patch	2026-07-03 12:55:46.622572724 +0100
@@ -1 +1 @@
-From 99b2d58abfc42177c2f3f72c0582465954d996ee Mon Sep 17 00:00:00 2001
+From d89628fb858f6da4e5386aa0ae6bf6faa65f40f0 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 99b2d58abfc42177c2f3f72c0582465954d996ee ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 628ff963c3..77947120f2 100644
+index b30af7c7a4..cb9e656144 100644


More information about the stable mailing list