From patchwork Fri Aug 12 11:49:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowrishankar Muthukrishnan X-Patchwork-Id: 114908 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 58008A0543; Fri, 12 Aug 2022 13:49:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E5BD406A2; Fri, 12 Aug 2022 13:49:20 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id A747840685 for ; Fri, 12 Aug 2022 13:49:18 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27C8KKRQ007059; Fri, 12 Aug 2022 04:49:18 -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-transfer-encoding : content-type; s=pfpt0220; bh=HAB6XUb3HJfJC04XeYgCZSrW/EDfvHY83fzcaLTMtu8=; b=ieph8BpdnZOa4J0JaayuKnRJPkcmKpk2beb/modFJOWdDb/Kzh1b6LO+fm8+kOqRUExf K87xquXIWOB6BFCpvvKvJDv1MUEid7BuojU3z+eFNgg0sZt4eS/eDTqUCTaOkDhuJkQg 1Br0sZ6bBcQ+GQDjmkyjJRHCv1HzmEcbVT3M1XLjgxq9aZ1HKmUcc0qfdbqkAfmAsVbR KuFNcBVG3C9jmUeo3TdFkVHHT7exPPAAMG5m7ZEDSCW1JCY1dAlynv28G+k4Z0HfH0z5 6YD/rkrYHzXJ88mH76tFbNx2Lb3eTpUg33ntdBlr4xenBjLpaP4eZuDxLqT0475vvfZz AA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3hwk8wgjsw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 12 Aug 2022 04:49:18 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 12 Aug 2022 04:49:16 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 12 Aug 2022 04:49:16 -0700 Received: from localhost.localdomain (unknown [10.28.34.38]) by maili.marvell.com (Postfix) with ESMTP id 27AFD5B6936; Fri, 12 Aug 2022 04:49:13 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: Anoob Joseph , Fan Zhang , Brian Dooley , Akhil Goyal , Gowrishankar Muthukrishnan Subject: [PATCH v1] examples/fips_validation: fix parsing SHA test type from JSON vector Date: Fri, 12 Aug 2022 17:19:10 +0530 Message-ID: <20220812114910.1032234-1-gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: A_B0tDTKTOykJeBm0NBF11eZIfh1L95N X-Proofpoint-ORIG-GUID: A_B0tDTKTOykJeBm0NBF11eZIfh1L95N X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-12_08,2022-08-11_01,2022-06-22_01 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 Store SHA test type in its own interim info struct instead of AES. Fixes: d5c247145c2 ("examples/fips_validation: add parsing for SHA") Signed-off-by: Gowrishankar Muthukrishnan Tested-by: Brian Dooley --- examples/fips_validation/fips_validation_sha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fips_validation/fips_validation_sha.c b/examples/fips_validation/fips_validation_sha.c index dff552586f..75b073c15d 100644 --- a/examples/fips_validation/fips_validation_sha.c +++ b/examples/fips_validation/fips_validation_sha.c @@ -259,7 +259,7 @@ parse_test_sha_json_test_type(void) for (i = 0; i < RTE_DIM(sha_test_types); i++) if (strstr(type_str, sha_test_types[i].desc)) { - info.interim_info.aes_data.test_type = + info.interim_info.sha_data.test_type = sha_test_types[i].type; break; }