From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EAA2941B27 for ; Mon, 28 Aug 2023 08:51:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED5C940274; Mon, 28 Aug 2023 08:51:33 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2069.outbound.protection.outlook.com [40.107.21.69]) by mails.dpdk.org (Postfix) with ESMTP id 5D1AC4021E; Mon, 28 Aug 2023 08:51:31 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mEOEjVSL8/EGd70OpMiyk+9y8kHIGiFg9CC0ltfJmAcTydKrrFp3Yr/k7LOiUZeWyuJIAOLEF49zQpazS2CLtjUWFNNiIDplAYGZ5Xjy1Z6alwqo6CMees7wNuWUFFHZ96Sd+g8bXLWEA1qFEH/sHvchd6B9MARotPtVPNx6ARYjAU9Rd5vp4huXmA711cxKrmwMMKFU13BGMzWsv8AmJuzVnTxhw7D85hxGyQVYqTITQNWvGVOdMGZTQZJnRcKouxCE+lEVxh2xKLDBM+RE0quYEtqms24RDLxuju9bxkusrbVvZKpfA2y4xVWc/EGcewEDVwNcKFubS3T4LcTYag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VsBzQD8gTV5I+Ka7tLi/5XdE6w+8qrL/CAf5FH3fCt4=; b=GxAbpHFWpBXdFlZBDi5PzuE+S8Gm4rUkpigDTCKdArAhlXeW2sgiabzbDrmK48G7ADKHRsUZvfMW6i83MiU5Nc/9jB+hsE672R6s3EQojDfc/GMPQTjpyTsVYXsiJTJhFef+OKzH0OhjBd/SMkacMpQtrykDw4gVIsrUR+WlAekFtGU2SM5U0WtrXJTo1iREVmm1CVkZQSQPgT4VjDtO4qjpkSo3bb27J59Cf91FQeaCRdLrXIFd529d2defGQq8PPmCAIvTrr7TwzNBm5BVO7caf1T0p/05w0O/23Qeyp8AgYoiMxESlgEb9+Oi5V1rHCoDISLstJITlJK1Eyhziw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VsBzQD8gTV5I+Ka7tLi/5XdE6w+8qrL/CAf5FH3fCt4=; b=pqsOqcEC4+oy8042zcAdeL5hhZIEO3kYMhk0FbtMYQ2v3kTNrK2pJPAcjZktYFZm8te9g+gvQXBm4RbQuhEu7dp2EZEAM4tYYRxa6LJ8Ynyiq+l2DuilYI/Xv7+N/i/4kGvMZgdCizlrJYEcGSPys7H13tGc0VpmUkdXjY1wg/k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) by PA4PR04MB7646.eurprd04.prod.outlook.com (2603:10a6:102:f3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.34; Mon, 28 Aug 2023 06:51:30 +0000 Received: from PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::450d:89ac:4f6a:6ae2]) by PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::450d:89ac:4f6a:6ae2%4]) with mapi id 15.20.6699.034; Mon, 28 Aug 2023 06:51:29 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: Hemant Agrawal , gakhil@marvell.com, stable@dpdk.org Subject: [PATCH] test/crypto: fix return value for GMAC testcase Date: Mon, 28 Aug 2023 12:21:07 +0530 Message-Id: <20230828065107.15569-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0201.apcprd04.prod.outlook.com (2603:1096:4:187::23) To PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9328:EE_|PA4PR04MB7646:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b5cba83-4e83-4def-ed72-08dba793351c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k9vTqc0zhJxYG2nCgVMlx/2metusWzOcJ6N4Xr4kROCYT+8Ge4um39zmDBNfxi7XkD+8oPyWjPAvVLDZti60BtmaY5P0AfIyZaRxbdwAS90FbuCLKX28HJaPj582pyr5mjRW0nqDYuiQ6v98rCjsZtQZuO5IqUAu/z/SLGr0S0xULlYL61NZxRMSMPVbTgC3C76wf4xOfQ5BNxrN5xBvywFw8zdnRhj8v+IEjR1wKw0ULh0vgMadyqco9HXZg0Vc11EJKU4OF8kEFuyVnVBRgPFQdsmVVH3Do7/qOmiWL7c7m4ND5+p3mWX1vCLvQEx/DUrURr4sx4Xrc5NSC1EyvqpW+hlNrrCq5AQXLMfQ/kwTS8h6TNurEihXwRAoXtw1r1Ex/NfsJJ86NM16m1oOikOul6JkBZkN/j0AxGgbzEQBhQ9Txz6EIUsI2bu6uhBdhUzT6H3TyOh4lQ23weNuEfjKAI7brIvBdnuH3Fb6Y4ugNk12kPS4shWF6VdWwn8UvPFM4NrCn2HvrPcG776Q8zy4HG/iZwfvi6AkIOM8Y98DDnC6j4gR9lPuDRQ+ip+AIHWvefhGD1he0Xk/iEhLZQ8QIYsygSIEcaEd2bdRLPOBFIJgtLsZO05/5PT0d79h X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9328.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(39860400002)(136003)(376002)(346002)(396003)(1800799009)(451199024)(186009)(44832011)(6506007)(6512007)(6486002)(6666004)(52116002)(83380400001)(1076003)(478600001)(26005)(2906002)(41300700001)(6916009)(316002)(2616005)(66946007)(66476007)(66556008)(8936002)(5660300002)(4326008)(8676002)(38100700002)(36756003)(86362001)(38350700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?h6nFR+tqVjB/yRvUU0P6qRwWwLTOAuzPvfZuCkP+mTvYBqOIxaeh0npTixQP?= =?us-ascii?Q?+MbaNYIUoDXJteo+C3guBi1TH6eCpmkHJ3GwYXiw18nngEydRlpYAMvHag3C?= =?us-ascii?Q?3tsNxTjbYhIoNxvxY33PaWrRDVZ6NnpA3ENmcohxksuY5l2YiiiVtfPXNmok?= =?us-ascii?Q?/VvvH5frrWAMLoiDPikhvIfqJy1aX9odG+0HbFx5yVc25KQdc1VKD5Kwj9ON?= =?us-ascii?Q?5xQQdoEnEQOPbW6q8FUf/+t/DzXneVNtTaXF8+5UIp4FKkVIuByDgR5XgZH5?= =?us-ascii?Q?szh7IENbKgbDRjprIDDmb3B0XZGpVP3HwLMhIjNpkXFlmnJ/0PYKSLSk5lDt?= =?us-ascii?Q?onxLmy1mKzLSC4vsWuod2bJmgiyGbxQMiAcDVqHHPoEDp92jgyaeTWYEPUwN?= =?us-ascii?Q?2F5NoJoY5au1Mzb5j7E9KhFvd9kD40s/yjfDSgnO7dbc0IBTcoDu9XKCowa9?= =?us-ascii?Q?bsmPlknMMbGgFe0WkGT+i4qoIIUWVGQy6KBGrs4nH3hEdEVyRm2U0Y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vqAfQxLivx9V6kI+eqFCr7Sg2sxt1BohivMTwe?= =?us-ascii?Q?aC99iHAq6r2PoAiGVKDb0zhTZDqWnGy7ww1a3UccSHxXfFm08Ni+KFFZlAVK?= =?us-ascii?Q?BFp9Vg9Q7Hwdamy7IhIMekMonh+KQmmWl3F1sq6tpNVfT4Ra3pqMUNtyk+A2?= =?us-ascii?Q?L79RxKEiGdh0fJPGXQS0/PXERojsqYzh9qKNo7Ml6Ht5aks95DjLXQpr/txG?= =?us-ascii?Q?Gw=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b5cba83-4e83-4def-ed72-08dba793351c X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2023 06:51:29.8882 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tG1VnZfAwHCIzC4VvQUjxMe5ZYfzpBCVWLCGmPsirxwqCOdV5ZAEH1hVNGvxv9AJqHUHdE9AY6+G04hFBcCfdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7646 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org create_gmac_session is already converting the return value of NOTSUPP to TEST_SKIPPED Fixes: bdce2564dbf7 ("cryptodev: rework session framework") Cc: gakhil@marvell.com Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- app/test/test_cryptodev.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 956268bfcd..068e47a972 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -13538,7 +13538,7 @@ test_AES_GMAC_authentication(const struct gmac_test_data *tdata) retval = create_gmac_session(ts_params->valid_devs[0], tdata, RTE_CRYPTO_AUTH_OP_GENERATE); - if (retval == -ENOTSUP) + if (retval == TEST_SKIPPED) return TEST_SKIPPED; if (retval < 0) return retval; @@ -13671,7 +13671,7 @@ test_AES_GMAC_authentication_verify(const struct gmac_test_data *tdata) retval = create_gmac_session(ts_params->valid_devs[0], tdata, RTE_CRYPTO_AUTH_OP_VERIFY); - if (retval == -ENOTSUP) + if (retval == TEST_SKIPPED) return TEST_SKIPPED; if (retval < 0) return retval; @@ -13802,7 +13802,7 @@ test_AES_GMAC_authentication_SGL(const struct gmac_test_data *tdata, retval = create_gmac_session(ts_params->valid_devs[0], tdata, RTE_CRYPTO_AUTH_OP_GENERATE); - if (retval == -ENOTSUP) + if (retval == TEST_SKIPPED) return TEST_SKIPPED; if (retval < 0) return retval; @@ -14419,7 +14419,7 @@ test_authentication_verify_fail_when_data_corruption( reference, RTE_CRYPTO_AUTH_OP_VERIFY); - if (retval == -ENOTSUP) + if (retval == TEST_SKIPPED) return TEST_SKIPPED; if (retval < 0) return retval; @@ -14508,6 +14508,8 @@ test_authentication_verify_GMAC_fail_when_corruption( reference, RTE_CRYPTO_AUTH_OP_VERIFY, RTE_CRYPTO_CIPHER_OP_DECRYPT); + if (retval == TEST_SKIPPED) + return TEST_SKIPPED; if (retval < 0) return retval; @@ -14600,8 +14602,7 @@ test_authenticated_decryption_fail_when_corruption( reference, RTE_CRYPTO_AUTH_OP_VERIFY, RTE_CRYPTO_CIPHER_OP_DECRYPT); - - if (retval == -ENOTSUP) + if (retval == TEST_SKIPPED) return TEST_SKIPPED; if (retval < 0) return retval; -- 2.25.1