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 001C6A0547; Wed, 27 Oct 2021 14:04:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA456410F7; Wed, 27 Oct 2021 14:04:30 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id B564C407FF for ; Wed, 27 Oct 2021 14:04:29 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19R6I1CJ032271; Wed, 27 Oct 2021 05:04:28 -0700 Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2103.outbound.protection.outlook.com [104.47.58.103]) by mx0b-0016f401.pphosted.com with ESMTP id 3by1ca99xb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Oct 2021 05:04:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CIsjVqPevySS44Kg0TAY8hlDOCypKP6J3JPxTP6WZ9iNBHdiC+QyHY6agdoIiQj1ZC26B0uSJPiboC1mr5VK+BwWvhfn6xXvWAKXGvhJF9hxSUp+oOOfK0PJI19Ej7b1nMngSjSWDLKo8t8PY8oNAcq9CEKQX9urNI2GI7t+LaZzSjnx2EQllPURKgg9J0k+fptLAhIfG81x1ucUu1DEonGtkBKKHYljnRGL72BCYcKTXFIhLUibYMdr5nJ7KfBKX9v5FDF+yCG1xgDA9VsDTXcawYa/7GRQ3voV4VzTmRZEXfVlEpq+4xKlqMQ9toMiWTsrfY6O2jpade+zjLBLoA== 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=MMdWavF7sW1HgC+EEaJv05Zljc7uJLvlikgo0Kr9d8c=; b=AQxETzun6bshTOLL87vkTJkdE8z0bpOIPNRy4pEyHX8MFvGD6JpvZ4wiBZH7bgw8ynqmJ4J4r9RW2pMcvnZ/XXsskt0NGe8bpLMZkpdHixkkYIb43ZXVUr1FGNKf6dTNz3thQqbbrdVR/8b+dlj4a7YjFhkil1hKNXDvVGsaNoJzzQyLdHVgVIwhI57FuG7D8DbuYNjbmKKduiw/sB5XjcuKrzoYS3EkoF7n97hdlY0UEJUK/aQZLTwtLRdZ4ReyAX7dAw8sp9xiMiOq+tNzBqZ0F37g2jJuAkek/gxh8Qc52LTnBD8k2dz9Vbip9GkIxoFcKlt5UpBql9IsFL2TZw== 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=MMdWavF7sW1HgC+EEaJv05Zljc7uJLvlikgo0Kr9d8c=; b=ONyAe/K1SYb0PUysl/A5NFd5Pha2w/dA8RpskU+Z8UStTqWBGjBaC+IAMtTqeYkeJI3+8GJYnHwp1S/W3umvexpSLV8f8ApBa2ji+gGE0bIiwWDkn/0XaDSjELuHPk49g3gqG/hJWc7nIq7Fr6PI9JbJUS7VqPhp65EoWHd34wQ= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4618.namprd18.prod.outlook.com (2603:10b6:303:e1::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Wed, 27 Oct 2021 12:04:27 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::c41e:707:3f91:71b8]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::c41e:707:3f91:71b8%8]) with mapi id 15.20.4649.014; Wed, 27 Oct 2021 12:04:26 +0000 From: Akhil Goyal To: Tal Shnaiderman , "dev@dpdk.org" , "thomas@monjalon.net" , "bruce.richardson@intel.com" , "Yigit, Ferruh" CC: "matan@nvidia.com" , "rasland@nvidia.com" , "asafp@nvidia.com" , "declan.doherty@intel.com" , "viacheslavo@nvidia.com" , "eilong@nvidia.com" Thread-Topic: [EXT] [PATCH v3 5/5] crypto/mlx5: support on Windows Thread-Index: AQHXyXzs4Y/U/fwPkUyXQko6sENJSavmtbOA Date: Wed, 27 Oct 2021 12:04:26 +0000 Message-ID: References: <20211017094133.18988-2-talshn@nvidia.com> <20211025084617.4952-1-talshn@nvidia.com> <20211025084617.4952-6-talshn@nvidia.com> In-Reply-To: <20211025084617.4952-6-talshn@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dde40e43-277e-4a37-cf6e-08d99941ec76 x-ms-traffictypediagnostic: CO1PR18MB4618: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ND5+MCgltc6EPwGVGLuMe0/nEkDeOC3V/Yed8hYbOq/gWC3uoWipWVfHTXhXetJmq9SHB0meO3yDoKVQ2uOwciiuBmIOO+VRTcRiykKxXl2qJz0CX052tCSIZ4EALz6mjlz0iGCHBRLQ8yW2V+E1mJF4/QLKsee9WDAHcWJkunWGgJMDrbxFH+ptHRcUom/peaOwnY0rprBbGZUhIClZ9eujFYH6tthLGQ/I0AE0jHQOathFB1pcotKJ62p8fvhBn8c+JP4xTuiDRpXGfwL4W24vH32FZwpaOmMJocNzxX/L9togpi0kbfr+eg/1W7MtAp9Ixg+vksUe4Y38FqNdD1QDvZD8P/FMCNH+vEgji8q9dYPJG1qaAp2qLiBVFFxBVblKoEJK1QPR+vxtnFLE2u1G5cLNBUYzLmkdHR44/ElrFnoXuRk66pnrCOWqToabARMDcjmpQVkV8ja/ru9/cL/xmPbBRvYinFaSUlKsq69mmLzGK8Ohi/swtX+MPMNH3K8Mp5VgsloSdc04OLLNSLOdN8ctbflK8sU3KidOViwRBPCOEWjLZxOuV22ER0NEKAm0LUcXMMxoyVE88WbtJYWOAl3RctmPApSaIzNfm3QN4PE87Luiapbmk/8MG3Ot/la7DaBqMRetwGuAz3JMTsFAm4//w/B9ZscMv3wjXcEZYwK2Bxule2/Mwy9dyOkOA2vhondiGOF7gI37MJ0lug== 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)(366004)(4326008)(2906002)(55236004)(8936002)(9686003)(6506007)(76116006)(8676002)(83380400001)(33656002)(38070700005)(7696005)(26005)(86362001)(66946007)(52536014)(186003)(66476007)(5660300002)(66556008)(316002)(64756008)(66446008)(110136005)(38100700002)(122000001)(71200400001)(508600001)(55016002)(54906003)(7416002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?7VJrOOq0kyV5q4d3Rw5zSfmxHNGRSXn/VqWTq+oJjeWqVQ4s2NGVisw0Jlzg?= =?us-ascii?Q?f1Vy0PY4GKZdCRI5KqyW5kAZKMn6+cGA12L9IWvGx5Y2gJ4UlkMnuq7kEW11?= =?us-ascii?Q?eGv08fnl3/yvFEKi1pOsyFqMFVAYa1njfpnBIQKTjWZYkrzgjP1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cRF0hHqasVBMZUEuPxQWOReVIKGPx+ssmOaIr+hG7?= =?us-ascii?Q?xC57dyXuD21ICZOIjTL9gP6N2BN3/v2OVj1txmhwASE9DDm5r44lDqKi74UW?= =?us-ascii?Q?CRrC8LhvuJRoQLObcA/3E8vAMi4xTtDhUMLAh1jv7cVZhOBs0ARussIKPIS1?= =?us-ascii?Q?LNs22c9qkx4n+O68Vck5nAGUOQE5EXqshx+uPX9PLUS8MrjZ5Vns6dq8P0d5?= =?us-ascii?Q?d5QB8Wdo1IdWXhl+gpfD2ZIgnG9/CTN+LeozmvhsW2quoJKBhlT4fhQEHqMD?= =?us-ascii?Q?/BAZeUwIrlAZEPF11znVah1aVmK2owsCk3mqxURXTUCO4Dc496pSubG3h8hg?= =?us-ascii?Q?r8JXzMXOntWOq2p8zcUCnAJcWCyv8bQcOjfyiWGILibYoM3LFZROu2qULluV?= =?us-ascii?Q?ZxcRQeAdOM6Dn9sZm9b4CxeA0rHHt6bh6BPG6n9fi6hwlCrnvYls6RZSVu7T?= =?us-ascii?Q?VzHAItl0qsHMPv7TmhyY2YeImT0X+zBwterNvYYUhA8Dva8GlTTGx1GlPg7q?= =?us-ascii?Q?+7HQEhLupBUR12/FRv6yHzvO+ggk2YPXXNLC5RoE2G2dWl2t9T6Y6O568uvP?= =?us-ascii?Q?PPBnp4NfTe5MUI1di9Uiqvo=3D?= 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: dde40e43-277e-4a37-cf6e-08d99941ec76 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2021 12:04:26.7235 (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: Ex1x01/S7XeyEHBbAhsSCp2SZG9xlws9p7/Bbe9s3iB9L5Zbg15iBD+5ktxmYJ558wklkoMc13EyKZM8WL55Fw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4618 X-Proofpoint-GUID: 8NeO7JWEzLPI102vTFR9WaphxFmtz1a4 X-Proofpoint-ORIG-GUID: 8NeO7JWEzLPI102vTFR9WaphxFmtz1a4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-27_03,2021-10-26_01,2020-04-07_01 Subject: Re: [dpdk-dev] [EXT] [PATCH v3 5/5] crypto/mlx5: support on Windows 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" > Add support for mlx5 crypto pmd on Windows OS. > Add changes to release note and pmd guide. >=20 > Signed-off-by: Tal Shnaiderman > Acked-by: Matan Azrad > --- > doc/guides/cryptodevs/mlx5.rst | 15 ++++++++++++--- > doc/guides/rel_notes/release_21_11.rst | 1 + > drivers/common/mlx5/version.map | 2 +- > drivers/common/mlx5/windows/mlx5_common_os.c | 2 +- > drivers/crypto/mlx5/meson.build | 4 ++-- > 5 files changed, 17 insertions(+), 7 deletions(-) >=20 > diff --git a/doc/guides/cryptodevs/mlx5.rst > b/doc/guides/cryptodevs/mlx5.rst > index 68bfdf3a83..7338c0c493 100644 > --- a/doc/guides/cryptodevs/mlx5.rst > +++ b/doc/guides/cryptodevs/mlx5.rst > @@ -39,12 +39,12 @@ or to access the hardware components directly. > There are different levels of objects and bypassing abilities. > To get the best performances: >=20 > -- Verbs is a complete high-level generic API. > -- Direct Verbs is a device-specific API. > +- Verbs is a complete high-level generic API (Linux only). > +- Direct Verbs is a device-specific API (Linux only). > - DevX allows to access firmware objects. >=20 > Enabling ``librte_crypto_mlx5`` causes DPDK applications > -to be linked against libibverbs. > +to be linked against libibverbs on Linux OS. >=20 > In order to move the device to crypto operational mode, credential and K= EK > (Key Encrypting Key) should be set as the first step. > @@ -155,8 +155,17 @@ Limitations > Prerequisites > ------------- >=20 > +Linux Prerequisites > +~~~~~~~~~~~~~~~~~~~ > + > - Mellanox OFED version: **5.3** > see :doc:`../../nics/mlx5` guide for more Mellanox OFED details. >=20 > - Compilation can be done also with rdma-core v15+. > see :doc:`../../nics/mlx5` guide for more rdma-core details. > + > +Windows Prerequisites > +~~~~~~~~~~~~~~~~~~~~~ > + > +- Mellanox WINOF-2 version: **2.60** or higher. > + see :doc:`../../nics/mlx5` guide for more Mellanox WINOF-2 details. I do not see a way to cross compile this driver with MinGW. How are we expe= cted to Test compilation for such cases? Do we need to build it over Windows? I per= sonally don't Think it is a good idea. Others please suggest.