[PATCH 1/1] ml/cnxk: avoid overwriting layer name during load
Jerin Jacob
jerinjacobk at gmail.com
Mon Jun 8 17:14:40 CEST 2026
On Tue, Mar 31, 2026 at 7:10 PM Srikanth Yalavarthi
<syalavarthi at marvell.com> wrote:
>
> Layer name is initialized during metadata fetch and
> parsing stage. Avoid overwriting the layer name during
> layer load.
>
> Signed-off-by: Srikanth Yalavarthi <syalavarthi at marvell.com>
Change as ml/cnxk: fix ...
and add Fixes: tag
> ---
> 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 628ff963c3c..77947120f25 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.34.1
>
More information about the dev
mailing list