crypto/mvsam: fix options parsing
authorDana Vardi <danat@marvell.com>
Thu, 1 Jul 2021 07:00:43 +0000 (10:00 +0300)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 7 Jul 2021 19:28:39 +0000 (21:28 +0200)
This patch fix the input arguments assignment to the correct
parameters in mrvl_pmd_init_params struct.

Fixes: 25b05a1c806 ("crypto/mvsam: parse max number of sessions")
Cc: stable@dpdk.org
Signed-off-by: Dana Vardi <danat@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
drivers/crypto/mvsam/rte_mrvl_pmd.c

index ba5cb28..b82533e 100644 (file)
@@ -924,14 +924,14 @@ mrvl_pmd_parse_input_args(struct mrvl_pmd_init_params *params,
                ret = rte_kvargs_process(kvlist,
                                         RTE_CRYPTODEV_PMD_NAME_ARG,
                                         &parse_name_arg,
-                                        &params->common);
+                                        &params->common.name);
                if (ret < 0)
                        goto free_kvlist;
 
                ret = rte_kvargs_process(kvlist,
                                         MRVL_PMD_MAX_NB_SESS_ARG,
                                         &parse_integer_arg,
-                                        params);
+                                        &params->max_nb_sessions);
                if (ret < 0)
                        goto free_kvlist;