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 A21CDA0C43; Thu, 23 Sep 2021 12:39:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C5294124F; Thu, 23 Sep 2021 12:39:35 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id F14464122B for ; Thu, 23 Sep 2021 12:39:32 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10115"; a="309372131" X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="309372131" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2021 03:39:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="702672140" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga006.fm.intel.com with ESMTP; 23 Sep 2021 03:39:31 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 23 Sep 2021 03:39:31 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 23 Sep 2021 03:39:30 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Thu, 23 Sep 2021 03:39:30 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.105) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Thu, 23 Sep 2021 03:39:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H9r5FsBNPtUVpnmo+0nAwBYV6xaFbjOpic4Wk8TWQC8zHZ+lbvwTXCswWpnJPYaxZ8nFkru4mKSXXnTlEOSmE9+oS27H3GPaFhaZsrEKmMwDw/Zcc4SK7RTuumnrOQzStp/WCSTTzE658eQ1DxqCam7B5uQpsCZ5Er1VZmto0r3BU1JO9iG0aHKc4ObgbwlxMaS4/v83zVYG8k5MBeASswfvOtzagngMTzvQeNwFDglpe4+YupHIYhxmwKDYtZHt+e9QZro1nCOMiL4tpz/Z0KMoga598XDi5dXNI3KI613zoSV2fzLl9vWMsM9uAiyhxRgH6b7tpccFZCGB6W80ZQ== 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=XKwYbsAHn8mBxjh6D+pDCNP2lvKpKQHqOsXEuWDzgFs=; b=ho/HHdwaJVNkUU4qz8eOct22KmjZaCaG+Ipu/J/Y/7r3wrSd+NMj7t5gOymhnWlOdRMwymbF7i+09scv/s2jzxLaucX4dPgYk9EnVyMpf5v6Ogm9SUwkgPcc0nGHVOdv7/SryHNtJrfptnZB9b5EJiW/+6We22vsdoXt50fv5CalrN45YFD4kpEbFEOUCJOsBNeEzipta1+19RkQIuR8jG2bV+7c0VPDWx4venU8ZepF8AxrMPSFkg9PbbasI4CErMNTaW4iD2J1eufrJLpHWp1VpDbHSLRl6uiD1XQNhYorVKv7vrleR4ReLlDSsunzeofW0XPeiNq6Z5kINnXBJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XKwYbsAHn8mBxjh6D+pDCNP2lvKpKQHqOsXEuWDzgFs=; b=XtO+5BiUpSFgDMFXdSY9u1o5kWjhBjMTluIT7KRo3M4qZcFvCbpv5mM5Ysm+4fwg4aaO9gMYPuisorQ7kxDfEH6BNImgP8cNEN9W4ZFokq0pgmsJOt2hMD2aEKc8EeEmTvH739JStRf/R/lFxhryskWwRAafTaPD3SV09K3E8i4= Received: from MN2PR11MB3821.namprd11.prod.outlook.com (2603:10b6:208:f7::24) by MN2PR11MB3822.namprd11.prod.outlook.com (2603:10b6:208:f8::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Thu, 23 Sep 2021 10:39:28 +0000 Received: from MN2PR11MB3821.namprd11.prod.outlook.com ([fe80::304c:39f1:9d95:4ba2]) by MN2PR11MB3821.namprd11.prod.outlook.com ([fe80::304c:39f1:9d95:4ba2%6]) with mapi id 15.20.4544.014; Thu, 23 Sep 2021 10:39:27 +0000 From: "Power, Ciara" To: Anoob Joseph , Akhil Goyal , "Doherty, Declan" , "Zhang, Roy Fan" , "Ananyev, Konstantin" CC: Jerin Jacob , Archana Muniganti , Tejasree Kondoj , "Hemant Agrawal" , "Nicolau, Radu" , Gagandeep Singh , "dev@dpdk.org" Thread-Topic: [PATCH v4 1/5] test/crypto: add lookaside IPsec tests Thread-Index: AQHXq8YnqMF94+DiZ0e38i32H2Jd4auxdlZQ Date: Thu, 23 Sep 2021 10:39:27 +0000 Message-ID: References: <1630644420-1256-1-git-send-email-anoobj@marvell.com> <1631884523-836-1-git-send-email-anoobj@marvell.com> <1631884523-836-2-git-send-email-anoobj@marvell.com> In-Reply-To: <1631884523-836-2-git-send-email-anoobj@marvell.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.200.16 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 11c21588-f82d-49a0-5430-08d97e7e6b2f x-ms-traffictypediagnostic: MN2PR11MB3822: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: k4bQ08i02eq6vUq1+AGqg06Xfw+di2OFVcI5fJOeZj5fIMXTC8h2bydlo1kWUILKgqGDYLYtmxT3pUnL5BQr0/z8EkB7am9CiumN2cGiPllAA8f6cKbX32oIzBi1ZlRmhsGIoGwaYq5PiPRyEj2vegdfHoSvWQObQ2SjDlVse/e5ZGf7J/Izsj83pU2adWY5ghhaCR4j9HqET+1w7DoOm2pMkepJHkAjJs4vh89T3VJV3KBclDVZH2UMObsjr56O0nFjsFjKQKT7prmDqOyuhKKlMhX6up7qqTdyvdVrnFoX8Cqdgen7ofb1hyOKgR19amPM/hfVy2RYoz5ZiUJVhWT0Sfn9QWiqsTs9wu7GbYwdJg+yI6lFU7szdgI2YnYlk3JKxhP7mbi+Orzqil9QyScEhV85FIUY0LyiVUJrmSMrZWQVcsATHoNk+v5jhz1vEdOsVKE6nK9jRPC2V5ewzW9bnXYs1gMC/riDK3WTFwH++R2bsLGT2hs+uu+s2bvAZGyBcU3mAgpxv7nIEGI3ZMUl7naXri5vzxJSHwVMFsSljVgP4fzHsJEonRtRNUSPLqyzIRw2qhurcd49MNRXyOzI6j6kmC2NoKeibMnzrKMroK9Qv866F1h7/cwV0CjWnm9k7QS8ma6s1bJf9pP2Jf5GQd9gYzdoaS/QTYJ/EY4gAvzkkckKHC/uzFFrO4qwODKAT8JiQhTLPAkBDhC41w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB3821.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(316002)(6636002)(8676002)(508600001)(38070700005)(64756008)(26005)(54906003)(122000001)(110136005)(66446008)(6506007)(186003)(7696005)(66946007)(33656002)(71200400001)(76116006)(52536014)(9686003)(86362001)(83380400001)(66476007)(4326008)(38100700002)(8936002)(2906002)(5660300002)(66556008)(55016002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?w1IAX9Eo2cl9yU8NyUTsWDu9YTB0ZPb5ixdV+FPp8pwnLWzkp5LA7CA+obMZ?= =?us-ascii?Q?77bJMndW2Mm2IPGcsr07fFP0ncZ5EKKNv/2kNrGzFkoAeJrhNXChH5ivfRTF?= =?us-ascii?Q?IEr3ITBq0FrDYcRBZfnzVp01YWUgFwZ4P++1eagPiarIkwu1+3ii4KUj13NR?= =?us-ascii?Q?ZqQzPT7mVIfF42JRoVDW7ZczCG/MSxocY4E63AVYro1gKBD+YJjtWrBvklhe?= =?us-ascii?Q?arNrXfRj0JhX+nkjfCBkCdIcEIreESETjUA0QTAzN1ploJxN9Pnp+E/94z98?= =?us-ascii?Q?o1dsd1X3XgcVPRza0VPwbEkWAAQJsdB69TSY5WrTkX6zcUlEJ2nwN/29q8O3?= =?us-ascii?Q?3Ka414sQTLhg3br8r86NFi9w8gX67f4LUhFieybZVWq7oSUnpE40Q5dGlgaf?= =?us-ascii?Q?EQJl68BRNZyiraHgGPsjZpt/PKdOhqNKXEuVWflBsYSn4k2B3GvH+GCB6KoQ?= =?us-ascii?Q?W3MJXiuZ4qb6U/y6L12wpOiGyrWNnAdwMpNfHNL+C6W90iOHD4FQfdk56hgg?= =?us-ascii?Q?PUvIeqp1LsmAHuZfc2NJZCytsU6hRDTV38d/K6MUcAnG9wxlJpfPtvel8fUA?= =?us-ascii?Q?aXiCnR5CD8mxnCutI7w9scuSYM/Wwirbcdk57tRDHxkENmajMRqVwXMNIngv?= =?us-ascii?Q?SQzqD1wmT/hsBCEXlPQ6UcEGOPp3XWMX48u1Qg5KxEMk4OvgtISAnJC1IpGs?= =?us-ascii?Q?3hFYMFh7auTa1s8kXF6Fg+jx+qAihjjKbNaKmKFWRCNSwcu9G+OaCz/3YtNm?= =?us-ascii?Q?16hH+/kGkXfw1E32DyIXu+J8zPK5/G61UHSa/hFB8Wa2F4I7hUiJxXwIyYCV?= =?us-ascii?Q?Xtj38hfcZiLs40FRrF6tF8ZUkTUYcO2W+ofnTLDhQOeUH/4H45Z3apn1RSgF?= =?us-ascii?Q?Jig5n+KUaNdVdj4Du2BFLrumUgi0dVkEWio9p/PsBFGdDTRwtMmNom6jYYCn?= =?us-ascii?Q?ssXq/otlaioliYTDlH0g5BJGJy+ggqOSRBi5GuNVQsZ3LHjrkHB6VXLOZ/pm?= =?us-ascii?Q?ta1qITgU+KtX3eGHjm2HPoHKrDhB+H2Bkd63e2NpHo/VYULApycPxWJDF14n?= =?us-ascii?Q?bj113JATBq046eRGd0Vx0iVU2floZmV/an4NXqtActs3WN9yYe00mdlzX683?= =?us-ascii?Q?QI+laXCpfukR8yUF1Tx6KycZcdVY1PQMmXb/I8FuhfA99wlWlhgECYdgbLdJ?= =?us-ascii?Q?4/jhF26aFEq8/LfrOE9MN4xZazld2V/1ZwfKBshXwWfBYXGkGoI7lRZPhKEV?= =?us-ascii?Q?8q/d0wK3Hm0YnV35yOJjBAp4+Dp9ua+Hk6iCch0sRHZzNW/cCuuFVxB9v7NX?= =?us-ascii?Q?AYDdbxNnwRlk4adH3rvEO4CO?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB3821.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11c21588-f82d-49a0-5430-08d97e7e6b2f X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Sep 2021 10:39:27.6839 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: K775Gze/oAGzsgjql3Oi55KqXgvAHhVTs8QVy5Pg3cIZsCJEXBAitvt4DZ2Peg1CMJOopUZDRVsj+k13gw6jnQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3822 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 1/5] test/crypto: add lookaside IPsec 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Anoob, One comment inline. Thanks, Ciara >-----Original Message----- >From: Anoob Joseph >Sent: Friday 17 September 2021 14:15 >To: Akhil Goyal ; Doherty, Declan >; Zhang, Roy Fan ; >Ananyev, Konstantin >Cc: Anoob Joseph ; Jerin Jacob ; >Archana Muniganti ; Tejasree Kondoj >; Hemant Agrawal ; >Nicolau, Radu ; Power, Ciara >; Gagandeep Singh ; >dev@dpdk.org >Subject: [PATCH v4 1/5] test/crypto: add lookaside IPsec tests > >Added test case for lookaside IPsec. Inbound known vector tests are added. > >Cipher list: AES-GCM 128, 192 & 256 > >Signed-off-by: Anoob Joseph >Signed-off-by: Tejasree Kondoj > >--- > app/test/meson.build | 1 + > app/test/test.h | 6 + > app/test/test_cryptodev.c | 232 +++++++++++++++ > app/test/test_cryptodev_security_ipsec.c | 212 ++++++++++++++ > app/test/test_cryptodev_security_ipsec.h | 66 +++++ > .../test_cryptodev_security_ipsec_test_vectors.h | 321 >+++++++++++++++++++++ > #ifdef RTE_LIB_SECURITY > static int >+ipsec_proto_testsuite_setup(void) >+{ >+ struct crypto_testsuite_params *ts_params =3D &testsuite_params; >+ struct crypto_unittest_params *ut_params =3D &unittest_params; >+ struct rte_cryptodev_info dev_info; >+ int ret =3D 0; >+ >+ rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); >+ >+ if (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_SECURITY)) { >+ RTE_LOG(INFO, USER1, "Feature flag requirements for IPsec >Proto " >+ "testsuite not met\n"); >+ return TEST_SKIPPED; >+ } >+ >+ /* Reconfigure to enable security */ >+ dev_configure_and_start(RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO >| >+ RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO); >+ >+ /* Set action type */ >+ ut_params->type =3D >RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL; >+ >+ if (security_proto_supported( >+ > RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL, >+ RTE_SECURITY_PROTOCOL_IPSEC) < 0) { >+ RTE_LOG(INFO, USER1, "Capability requirements for IPsec >Proto " >+ "test not met\n"); >+ ret =3D TEST_SKIPPED; The device still needs to be stopped here I believe if capabilities not met= . >+ } >+ >+ /* Stop the device */ >+ rte_cryptodev_stop(ts_params->valid_devs[0]); >+ >+ return ret; >+} >+