From patchwork Thu Jul 1 07:00:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: danat@marvell.com X-Patchwork-Id: 95102 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2E0F7A0A0C; Thu, 1 Jul 2021 09:00:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B113412A2; Thu, 1 Jul 2021 09:00:52 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 4D00A40040; Thu, 1 Jul 2021 09:00:50 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1616sxBM028187; Thu, 1 Jul 2021 00:00:49 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=yNPjZFZ0/PqP4yqc4MHnnai3gcSRYfZ3xjOH9MSK2BE=; b=gtFueulg6jXKfw2uNpFYIQhg40sZl2Z/UooMcZvQSooOndVCoIklZlov+h2wQnNk/Qlb WR6b5SiX9mtRm1kcrzfl0q4/ebOXAcUKrUSK7lmPOGiKTUTAQVdH2r63PxIk5oEG9I+4 KE5PD72BQGRvLg1FUfCvlfSV8BpIJaIbqtTHQ/o96FT+Wn36DzeG9CVRlTqCehqpdySt KmyXqJNU2nngN3cll1ArwWaVHYfyHQlzM0Jo8kfkanx2HPEk/9juysMcDMPEf2ZWttCe OjVN7dqJtpBInbLjI3lvXr5wc/mI5E8xJn3GJBLFpr8SBGOYi3vxm/cLaIEptjFx8aqq 8Q== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 39h2h4hgeu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 01 Jul 2021 00:00:48 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 1 Jul 2021 00:00:47 -0700 Received: from jupiter077.il.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 1 Jul 2021 00:00:45 -0700 From: To: CC: , , , , Date: Thu, 1 Jul 2021 10:00:43 +0300 Message-ID: <20210701070043.31184-1-danat@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Proofpoint-GUID: AnMpYcpJs17kaj5AuvTFgAEgG80_7kNf X-Proofpoint-ORIG-GUID: AnMpYcpJs17kaj5AuvTFgAEgG80_7kNf X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-01_01:2021-06-30, 2021-07-01 signatures=0 Subject: [dpdk-dev] [PATCH] crypto/mvsam: fix input args parsing X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Dana Vardi 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 --- drivers/crypto/mvsam/rte_mrvl_pmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte_mrvl_pmd.c index d8e07e9c1..e9c6b071c 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c @@ -1191,14 +1191,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;