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 001C3A0C47; Tue, 6 Jul 2021 10:47:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 65DC740688; Tue, 6 Jul 2021 10:47:15 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 176704067E for ; Tue, 6 Jul 2021 10:47:13 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1668US61020304; Tue, 6 Jul 2021 01:47:13 -0700 Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2107.outbound.protection.outlook.com [104.47.58.107]) by mx0b-0016f401.pphosted.com with ESMTP id 39kt2mcb5u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Jul 2021 01:47:12 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B+YpMJJg+t1k6WOCsZI0SHyFs87gPjAJ37/c2r6iH4jwII84L12necDSh51viYbGVpv9ATEoo8XYa4UiMJam0aRk4BhEEq3U7UzUuRB3zo9P3Po/AAcQ0ra8R3sGgz+XThFXfM6SvauZc7GkexK5HQkF0+GpOrRXY+0MDKVtnKL+ats+AosZemdQSHDMbkbIuH6mnMdoskQ57MVoKb2bBjpmZCznjr4TFSIeX09dm0U5oBqx+ORRl3SuHl1rnQg/j3nFYrEZzMQxlgL9xAejeBqiQ9zp1vkP/Qv8sixR8paT8+5nEwRhRDiqxx1LbvZ3BhchrCaq7zHkCRt5z94kcQ== 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-SenderADCheck; bh=i/u4LnSSwGD9AGUDEPSM3bod4ZIMqDfU6ULABuCWICk=; b=g/Boe0PSjxGOnVbrZGju4UOwA+mvOz3gE9xwekPn80IATSk5C3Jx7JKO8Q9ZKQzsLZna33MzQv64XDO5OauXjp+DKX+8YgnLimWhhnl37ksx8m9qssW3JXqmNHj5eoup61/5xawx5tqttmaMzS/qHl9hie1XbNhtA28bV0sCzMvIhQ02uc9r9S2CuEj3jnmDo+/P2OF5+FkYsg72FjI6LLnzysDnZfmlpNv7QjPlYH+JenIGJLmHXHNK6M+K4Zxmh5DIVdbaieYnn/KM0pPfcj/mrBBXHkLrV6sgyFaiStFnkIRlkjLONZfVPSJfCSBcQc72itrC4+IrumDSlRQySQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i/u4LnSSwGD9AGUDEPSM3bod4ZIMqDfU6ULABuCWICk=; b=KgaTe3g6RJUtP5jivlZdmVdTcisFjduyi0B5O9PYvwEvjbwTsfRB21T2Jj2z3Nt4rFEe4D9HCtZz1/V1/pciPIDEtQg11y2MgGMYk3LItkSfZXMAsuTmwH09+8uvhjIYhfCdfCUyldGfMgDuXEBEjkHLQwLOUvWc8rkVOOgTr4A= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO6PR18MB4483.namprd18.prod.outlook.com (2603:10b6:303:13d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.23; Tue, 6 Jul 2021 08:47:10 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557%6]) with mapi id 15.20.4287.033; Tue, 6 Jul 2021 08:47:10 +0000 From: Akhil Goyal To: Shiri Kuzin , "dev@dpdk.org" , Thomas Monjalon CC: "matan@nvidia.com" , "suanmingm@nvidia.com" Thread-Topic: [EXT] [PATCH v5 14/15] test/crypto: add mlx5 crypto driver Thread-Index: AQHXbnzcK5Ebahzlc0Gku83v+pl8Rqs1noLw Date: Tue, 6 Jul 2021 08:47:10 +0000 Message-ID: References: <20210509160507.224644-1-matan@nvidia.com> <20210701132609.53727-1-shirik@nvidia.com> <20210701132609.53727-15-shirik@nvidia.com> In-Reply-To: <20210701132609.53727-15-shirik@nvidia.com> Accept-Language: en-US Content-Language: en-US X-Mentions: thomas@monjalon.net X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=marvell.com; x-originating-ip: [182.68.121.110] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0df72433-e25e-4a11-dd2a-08d9405aa48e x-ms-traffictypediagnostic: CO6PR18MB4483: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MbS6g7sT43zjTrmm9Y/nKIpRZ5xh8lrx7vaYbEDRUtBQ4QF2vsPD791USYYsL3HF1YLtlu5QPByOExwGZaBGmNTz4X625v3Lc3SkEqD9OcN2D1LHQUTwiwCfwsmy0Mg79Fg4se/MAJSXuOZsYbmdbhVlNgo3e1f2Ch3dz2EurRfeJWjW4pVpO0BXDNSqHHARYbU+w4YGa18IUEXzReo+fRyYRpz6Dy8zfWJCUnQ9vLUI5rqt1swPNy5aGg4upy1vCoycgDLXdQsZfieOZJvzV7yVtQ1mF5ywCcBa8gW6A1he3KSKJHVRcS5Eciq/T8z3OaXrXGI5mgIgQMFCeir/XFiZC4zOzyQclu4dqnhREucAbLNM8TZ6tQ6r5zDsDUbZpGFc5rPYLNeyOqwZdnKN/Ud1do/H+PGkEikRpcHkNq9kJD6fqej/t8yiHUNEqRIh/aciUdrj5gTl+0CQFqvqYH+0tJ+SzWgbkfkiBg8cv3VMXbAAM9ieoxdE7XFZbrM/mHk8aLjzpiFbxIfdKB4X2T7NqBkXygfOcs7cJV2J4O9mqoR5r6IPkZX8I7udsfMzy2DDorfpZ6uY86rFTksoC+gYp3i+cIe4CT+rZRNKbgqyUx6F3xOQpEIKWsHLDcUEDgVvHrwhiKBMQyqYcg0xbg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(39860400002)(346002)(136003)(366004)(86362001)(478600001)(186003)(8936002)(122000001)(33656002)(55016002)(71200400001)(8676002)(4326008)(9686003)(66476007)(5660300002)(66556008)(64756008)(76116006)(7696005)(316002)(54906003)(110136005)(38100700002)(52536014)(6506007)(66946007)(83380400001)(66446008)(26005)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?hPL+tCaY5BbwUubYqE5s5PddWpkzQzOdoe1mC9L30iLL9bxq93gjccW2N+gt?= =?us-ascii?Q?sBIp4YL+H/tIdu/S1MZmy3jcwIE/g8kC+jha8NCOORRzpfH5SD9If73j1zL/?= =?us-ascii?Q?KdGuCZlOKoME0ZtuYCXchbUwQ/3SxzPKJp72cXqlGSDfErtEgJkym4P2AWuS?= =?us-ascii?Q?wx5xPXRlZJYzAwsodDtCqKahelSCysAZ1gWPWLRmbTgUvHGC8+UdIRONWLWo?= =?us-ascii?Q?GZFWKQKQ94ezN0It5i+g8AoP4Zqt3+9Lcpvgd304jX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7p8AVypejFys8zz9IDDwnAvFZi2/Kq9eZrZkSNtIW1?= =?us-ascii?Q?Ve2c9tvpG94uqoZnpETkRWlnu/aYefFU0Rg/ZGp3Um7/NX2QSUSfcz0yxIgp?= =?us-ascii?Q?MoDOYzjwBIl6YLKCZrjWxOTNulZAMIKBI0bJW2SZLQf4S1it1TFWMEOI4ecA?= =?us-ascii?Q?ihB6q8cFXrdiJy3L5X5IYTTc?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0df72433-e25e-4a11-dd2a-08d9405aa48e X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jul 2021 08:47:10.0601 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 2siomCavlbaM+w8alznzQup6jUiJ0vJZ9JRECclqkGxvbhTTS7ELqu7jOjJZKCBWaK1qkOxqiF+UXxKGf5XnOQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB4483 X-Proofpoint-ORIG-GUID: QNe2-tq6GtBDJjfeYUe-06_8KtdariR_ X-Proofpoint-GUID: QNe2-tq6GtBDJjfeYUe-06_8KtdariR_ X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-06_04:2021-07-02, 2021-07-06 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH v5 14/15] test/crypto: add mlx5 crypto driver 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" > In order to test the new mlx5 crypto PMD, the driver is added to the > crypto test application. >=20 > Added mlx5 vectors that include 4 testing vectors with length 512 and > 4096. >=20 > Added mlx5 encryption function and decryption function that will both > use the mlx5 vectors that will also set the dataunit_len and use a > wrapped key. >=20 > The added tests will test both data integrity and correct stat values. >=20 > Signed-off-by: Shiri Kuzin > Acked-by: Matan Azrad > --- > app/test/meson.build | 1 + > app/test/test_cryptodev.c | 334 ++- > app/test/test_cryptodev.h | 3 +- > app/test/test_cryptodev_mlx5_test_vectors.h | 2502 +++++++++++++++++++ > 4 files changed, 2823 insertions(+), 17 deletions(-) > create mode 100644 app/test/test_cryptodev_mlx5_test_vectors.h >=20 > diff --git a/app/test/meson.build b/app/test/meson.build > index 0a5f425578..c36655888e 100644 > --- a/app/test/meson.build > +++ b/app/test/meson.build > @@ -313,6 +313,7 @@ driver_test_names =3D [ > 'cryptodev_aesni_gcm_autotest', > 'cryptodev_dpaa_sec_autotest', > 'cryptodev_dpaa2_sec_autotest', > + 'cryptodev_mlx5_autotest', > 'cryptodev_null_autotest', > 'cryptodev_octeontx2_autotest', > 'cryptodev_openssl_autotest', > diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c > index 39db52b17a..8dbe324b81 100644 > --- a/app/test/test_cryptodev.c > +++ b/app/test/test_cryptodev.c > @@ -35,6 +35,7 @@ > #include "test_cryptodev_hash_test_vectors.h" > #include "test_cryptodev_kasumi_test_vectors.h" > #include "test_cryptodev_kasumi_hash_test_vectors.h" > +#include "test_cryptodev_mlx5_test_vectors.h" > #include "test_cryptodev_snow3g_test_vectors.h" > #include "test_cryptodev_snow3g_hash_test_vectors.h" > #include "test_cryptodev_zuc_test_vectors.h" > @@ -1267,6 +1268,39 @@ negative_hmac_sha1_testsuite_setup(void) > return 0; > } >=20 > +static int > +mlx5_testsuite_setup(void) Please see how other drivers are enabled in this test app. We no longer allow PMD specific testsuite. Please see the cn9k/cn10k PMD which recently got merged. static int test_cryptodev_cn9k(void) { return run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_CN9K_PMD)); } The cases which are not supported by mlx5 crypto PMD will get automatically= skipped If all capabilities and feature flags are set properly. The cases should be generic enough to be used by other PMDs as well. @Thomas Monjalon: This patchset is adding PMD specific test cases again which we removed in past 3-4 releases. Regards, Akhil