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 20E0FA0C43; Fri, 24 Sep 2021 09:24:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D3154122D; Fri, 24 Sep 2021 09:24:12 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140043.outbound.protection.outlook.com [40.107.14.43]) by mails.dpdk.org (Postfix) with ESMTP id EE62140142 for ; Fri, 24 Sep 2021 09:24:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lGWNJCci6WCG7iUQzemHFlpTe9FWjnJ/tXX9u6ksqGBX7sJTs0OB3jYbCfbc0XWeiKRUQWmHIlNtivMCgbpLQOVlTazeX3ou9xRXV5WngskY2mgtjRTJT1VAA5vJWtICAm9DMNljNtN2L1ATq2/intobgzopc6uOoMHtytnwIz70jRSPMhs1Ibcs+SHVb2aLpX2baWBBZLE3X7UB0Ii/qM56YfnLtX8YBuB0YPpAv3cwqYBoCbEvxMH1GpurDFlh5XYUB3/ErUtxjb4timk7fF1/GmpTsnagqRoJ2zDVzcgV60UqaWOvUPyIlClJNTqXIFszKekfZ1yuaEG+/xamNQ== 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; bh=CeTRVCVk0MNrmhByDPDvdI3rvtSVfx3OIDHDqab+WwA=; b=N3oLITg0dD0Wni32np2chxIKTxLEZA5Ia6Cs540bRoPmqKNndUFDHz2DEORF7Ry+l9ENT5gEID5qzEQ95y58IY2dTX8BUoQ+UVTo4ErJCLedS/JebzchKtTHah7KaSg3TilVk+W8H4V0pOb0V9BproV7sL9e0CO8dEWnJk326+Ho0h/UThaFeO3THFn/isRRSr6Lg7Usuhb5zktXuUSt42s7ybEpobGzTNzLH+Jbcba8AYMI66mW3NfzaAGmzWdY/u8Qpp4QArUQY2STPd4n9Wtijy3NljRemVqe/+coBYysUU58tbqAUbLwuz3ancAJqE25OioB9YdeoCi9NzI4WQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CeTRVCVk0MNrmhByDPDvdI3rvtSVfx3OIDHDqab+WwA=; b=QDK5DjzFtRylPjjQZOt2VYfF7qfToYpfjb0+X952kE3qPkxT+OoHBDpHVFsEOsqCJkYJ2mCSxu7m2NV/89A/9LyksXF3R2/QeeFwVPeMmtsLldRWL4fj0g0XhQfE2q0hhncyEfpa5e5CU7uCh0IiwuAvlo0ZDkTqGb7gSVjPRjo= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=oss.nxp.com; Received: from DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) by DU2PR04MB8952.eurprd04.prod.outlook.com (2603:10a6:10:2e3::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Fri, 24 Sep 2021 07:24:09 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80%3]) with mapi id 15.20.4544.018; Fri, 24 Sep 2021 07:24:09 +0000 To: Anoob Joseph , Akhil Goyal , Declan Doherty , Fan Zhang , Konstantin Ananyev Cc: Jerin Jacob , Archana Muniganti , Tejasree Kondoj , Hemant Agrawal , Radu Nicolau , Ciara Power , Gagandeep Singh , dev@dpdk.org References: <1630644420-1256-1-git-send-email-anoobj@marvell.com> <1631884523-836-1-git-send-email-anoobj@marvell.com> <1631884523-836-3-git-send-email-anoobj@marvell.com> From: Hemant Agrawal Message-ID: <93b3749b-563f-8d16-7e67-c400343b4bd1@oss.nxp.com> Date: Fri, 24 Sep 2021 12:53:58 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: <1631884523-836-3-git-send-email-anoobj@marvell.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-ClientProxiedBy: SG2PR06CA0120.apcprd06.prod.outlook.com (2603:1096:1:1d::22) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.2] (122.161.66.32) by SG2PR06CA0120.apcprd06.prod.outlook.com (2603:1096:1:1d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.14 via Frontend Transport; Fri, 24 Sep 2021 07:24:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b803f96-1784-45d1-405b-08d97f2c4cb3 X-MS-TrafficTypeDiagnostic: DU2PR04MB8952: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UaJ6DHx96alIJDw8d+cAlYQsLnkMwmel8e6S7FEBtxkk7jo7boLmcfHAU9h+QRYnl5WXnJHYLnLkFnZMEDo8jCx+Z+TxDUAgjqaxIS7/c4w3yD0ErIqgssHAakIE5OWbBBJUahtK8bw8nLetyLj/nOzjIczEtau8nVCzUm93v+oyC0t7hmUmz4qST+RkgPptzsQz1cfyhvOIBbXnRmyvTAGqkeNpUT/ljR4Wuq4KLULXmAF+tI36cjX3qRwadjJ+t+pMbeduXiwcOnIoO8kia/8fEMVFQM70BCyq3vZabKK6J1tSUT4GVVGZNUurjS3U+bvdxxXfHFSzfLAHVDMSRBZwYVZCG8rx6IcdvppR+WhuUjDbeGxQ7PxaY3IPP6vVJuwrE+ZOzyvUD2AW3nWznDg/hQ+Cge5B5w0til2UcMZH/2qEIZtQ0FD0pOlTX16fFm5+w4wGQwXL4SHJPP0ayvPzYbrLrcCtzDCSK4g2JxIBjMH5w6IFr/NzyNWTBE6wrD/tOblpAeAEPrgQbGhuP4mMZfTMhttk7TGNmdgB1Ly68pYvokEYLKoxjByFNo+8U9pVc+dRNvmF1RXIh4eXjs2DTz0c8ggaasxJ2L8peMoP+dmkHSrLb0G7NpDONFrpLfh3mDMsWjTXOpQwey5LIv2WRPIlwzqjM8Nt3C9M+F6sN2hsP5oo8GXV/9cGoCXSBDGsEu70/ZgbJAZV9CgoOVfModyJRsUfn2eR9jb1xoIWrUJonbu6oic7XvL/W7GUu1ll8oY8CodNxBu9AFAjCw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR04MB8630.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(8676002)(5660300002)(16576012)(2616005)(83380400001)(86362001)(508600001)(44832011)(7416002)(110136005)(186003)(38350700002)(38100700002)(956004)(316002)(4326008)(66946007)(53546011)(54906003)(8936002)(31686004)(31696002)(55236004)(26005)(52116002)(6666004)(6486002)(66556008)(2906002)(66476007)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?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OfhhAakP8?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b803f96-1784-45d1-405b-08d97f2c4cb3 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2021 07:24:09.5065 (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: fW5vyY0GS46rvUHbbHb6aU1C9k2Cnuj9HwfRchj7zWjYxz7ZC7AWAqFcUynjPVU0jsnh0tHN3s3eZw/f/gZ73w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8952 Subject: Re: [dpdk-dev] [PATCH v4 2/5] test/crypto: add combined mode tests 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: , Reply-To: hemant.agrawal@nxp.com Errors-To: dev-bounces@dpdk.org Sender: "dev" HI Anoob, On 9/17/2021 6:45 PM, Anoob Joseph wrote: > Add framework to test IPsec features with all supported > combinations of ciphers. > > Signed-off-by: Anoob Joseph > Signed-off-by: Tejasree Kondoj > > --- > app/test/test_cryptodev.c | 73 +++++++++++++++++++-- > app/test/test_cryptodev_security_ipsec.c | 107 +++++++++++++++++++++++++++++-- > app/test/test_cryptodev_security_ipsec.h | 52 ++++++++++++++- > 3 files changed, 223 insertions(+), 9 deletions(-) > > diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c > index 9c7875c..7fd246e 100644 > --- a/app/test/test_cryptodev.c > +++ b/app/test/test_cryptodev.c > @@ -8904,7 +8904,8 @@ static int > test_ipsec_proto_process(const struct ipsec_test_data td[], > struct ipsec_test_data res_d[], > int nb_td, > - bool silent) > + bool silent, > + const struct ipsec_test_flags *flags) > { > struct crypto_testsuite_params *ts_params = &testsuite_params; > struct crypto_unittest_params *ut_params = &unittest_params; > @@ -9021,7 +9022,7 @@ test_ipsec_proto_process(const struct ipsec_test_data td[], > /* Process crypto operation */ > process_crypto_request(dev_id, ut_params->op); > > - ret = test_ipsec_status_check(ut_params->op, dir); > + ret = test_ipsec_status_check(ut_params->op, flags, dir); > if (ret != TEST_SUCCESS) > goto crypto_op_free; > > @@ -9029,7 +9030,7 @@ test_ipsec_proto_process(const struct ipsec_test_data td[], > res_d_tmp = &res_d[i]; > > ret = test_ipsec_post_process(ut_params->ibuf, &td[i], > - res_d_tmp, silent); > + res_d_tmp, silent, flags); > if (ret != TEST_SUCCESS) > goto crypto_op_free; > > @@ -9057,11 +9058,71 @@ test_ipsec_proto_process(const struct ipsec_test_data td[], > static int > test_ipsec_proto_known_vec_inb(const void *td_outb) > { > + struct ipsec_test_flags flags; > struct ipsec_test_data td_inb; > > + memset(&flags, 0, sizeof(flags)); > + > test_ipsec_td_in_from_out(td_outb, &td_inb); > > - return test_ipsec_proto_process(&td_inb, NULL, 1, false); > + return test_ipsec_proto_process(&td_inb, NULL, 1, false, &flags); In most places, you have hardcoded this silent flag - this is for debug prints. Will you please driver it from some macro or variable or log-level, where it can be changed easily.