From patchwork Wed Sep 16 10:41:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Archana Muniganti X-Patchwork-Id: 77889 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D5772A04C7; Wed, 16 Sep 2020 12:42:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B7CFC1C219; Wed, 16 Sep 2020 12:42:07 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 16CCEDE0; Wed, 16 Sep 2020 12:42:06 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08GAP0SE021901; Wed, 16 Sep 2020 03:42:06 -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=rh1B5baVUBFLP5EJHV1QLklTkl9mTPdEUnD7vDRLBok=; b=CBPErDUlcvbIS5LDmPjwcA4e5iY3bu4sw0GmKxf4Nv2QWfY1vLl4fLCwifM1Uv1LhHUu ILRNkAIscQvfZug04q8YBec7dEhAHvj6x4+jP/dDtVGM68HuTOxr1eMncec0/A6NET+t bWNmpW5seKYwcTiofJudObKxUbezVrhqREpaHWzFOfsU0OaHTXUE/mZJdmD/BfF4PcOV dpfhZG+NkvIZBiGsFzdy4rko7214hmDt8/ub44nT1ATL/7qdypDskZfY7Uin0hEUzEc9 74EdgcvJ4kWJp0fo6RwfLLIyYpp2WYO1ycja0eqOa1hE+lu1XePl5R3uQntUUgcxyNzi GA== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 33k5p6a8h3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 16 Sep 2020 03:42:06 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 16 Sep 2020 03:42:04 -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; Wed, 16 Sep 2020 03:42:04 -0700 Received: from hyd1409.caveonetworks.com (unknown [10.29.45.15]) by maili.marvell.com (Postfix) with ESMTP id 699E43F7044; Wed, 16 Sep 2020 03:42:02 -0700 (PDT) From: Archana Muniganti To: , , CC: Archana Muniganti , , , Date: Wed, 16 Sep 2020 16:11:51 +0530 Message-ID: <1600252911-20295-1-git-send-email-marchana@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-16_06:2020-09-16, 2020-09-16 signatures=0 Subject: [dpdk-dev] [PATCH] examples/fips_validation: bypass the unsupported test vectors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Bypass the test vectors of unsupported crypto transform for SHA. Signed-off-by: Archana Muniganti --- examples/fips_validation/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c index efd32a8..bde779c 100644 --- a/examples/fips_validation/main.c +++ b/examples/fips_validation/main.c @@ -1022,7 +1022,7 @@ struct fips_test_ops { ret = fips_run_test(); if (ret < 0) { - if (ret == -EPERM) { + if (ret == -EPERM || ret == -ENOTSUP) { fprintf(info.fp_wr, "Bypass\n\n"); return 0; } @@ -1443,7 +1443,7 @@ struct fips_test_ops { ret = fips_run_test(); if (ret < 0) { - if (ret == -EPERM) { + if (ret == -EPERM || ret == -ENOTSUP) { fprintf(info.fp_wr, "Bypass\n\n"); return 0; }