From: Dana Vardi Date: Thu, 1 Jul 2021 07:00:43 +0000 (+0300) Subject: crypto/mvsam: fix options parsing X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=325ce224ffd16d67d5370c2f28a267aabd6690a9;p=dpdk.git crypto/mvsam: fix options parsing 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 Reviewed-by: Liron Himi --- diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte_mrvl_pmd.c index ba5cb28654..b82533ef42 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c @@ -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, - ¶ms->common); + ¶ms->common.name); if (ret < 0) goto free_kvlist; ret = rte_kvargs_process(kvlist, MRVL_PMD_MAX_NB_SESS_ARG, &parse_integer_arg, - params); + ¶ms->max_nb_sessions); if (ret < 0) goto free_kvlist;