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 B640D42D06; Tue, 20 Jun 2023 11:55:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 315754068E; Tue, 20 Jun 2023 11:55:19 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2078.outbound.protection.outlook.com [40.107.244.78]) by mails.dpdk.org (Postfix) with ESMTP id 06992400D6 for ; Tue, 20 Jun 2023 11:55:18 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mtYZMmo8xEf22L0hfRdwm+hFj7ouCooJ+7qsM19Z/mQFcfUd78fZ0Rjqiw2hHFdbrqoSAozKYfLe/R9V9QJKpylMr5wwYNpy8vTjJZ9sCAxEzroQMumEsak03qnS03rm14tRDet6kceUAVGSSlmyPjXDX+bRC1u4p8z8eKkAfqCU1u1qiFQOGyXV0SbT0/lV7mTDJpnnbLrawmmybCarjt+83QN7EDYHQGrHvpUX4IwXQajVhGzbW4oYQHudG6qUbLKhe9YKCZcJywL9zRfHzvmYwt/GcprWA+9J69jIS5hLeQOlxJ9HfSLShJwWTntUh9I7MzJsdeca4JuxGYxmrw== 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=oIk5FVoMwZvBNIYboVhQ75ABvswu2hnTJmPEVPkTBEc=; b=KaM7cMYJADQ29pRRZSvt9RyJ5zhUnK6shDrH65vN1xdilpAPY6WNR9NGywq9tUmdcMoZlV78OlyHHz8RhkFWGc7pxtBAxYpXhC9ywDD3V0Luru3SmjFPxHY4DC8UZ469RMzBuF2T2yQ6jPYO7qZugftXpUI3YMBV219LSjcnlzinb1t/nBabxY45IA9g4mYvLHTVsWoOUCOidpgex3kCwb2aM5GSeqJ8IclUg8hlDwmrx6+pKuuSn0Q2q8IEeyUmYMkC8oyS3Yj2ugCg2gWi8mLsMWsbE+PVmr0g0rEuoZvnItjp3sSelNimtnS7HoHTm802o5zrxdci9hSUp4rzLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oIk5FVoMwZvBNIYboVhQ75ABvswu2hnTJmPEVPkTBEc=; b=rlcXA0x4yGjqp5VLLQ55u4UNBJBhYF3eKZ0E5xpgvTXbWifL0dfYKa1M/dTv8EYi2Zvjk/CMIDSOO1Rx6E39LNdFSeDRI41U1tnmtnktFpmApSe3zv/47B7Xdt7TKrV1lluiz/qElRI4WuicVTYNuPWzvSynErQ6cT09FXiinEYqwhSpoxwwI603kmWylmkMfbPGkc/hcL7xrZWa3mYA8qi61f9s10a6vox/n5CY/LkjhKfjMBdOO8pKQrSFf9jXxiIVO3EnY8pRnS7xHtEPBfpUgtlX0SYDhkgOiCGlPl8Y6zhS8T8ERTPKLnaErGsxiY1Pt3MZS5gvDJJ4sGU6OQ== Received: from CO6PR12MB5396.namprd12.prod.outlook.com (2603:10b6:303:139::8) by BL3PR12MB6379.namprd12.prod.outlook.com (2603:10b6:208:3b2::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.35; Tue, 20 Jun 2023 09:55:13 +0000 Received: from CO6PR12MB5396.namprd12.prod.outlook.com ([fe80::18a8:95dd:6dcb:bbfa]) by CO6PR12MB5396.namprd12.prod.outlook.com ([fe80::18a8:95dd:6dcb:bbfa%6]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 09:55:13 +0000 From: Suanming Mou To: "gakhil@marvell.com" CC: Raslan Darawsheh , "dev@dpdk.org" Subject: RE: [PATCH v2 0/9] crypto/mlx5: support AES-GCM Thread-Topic: [PATCH v2 0/9] crypto/mlx5: support AES-GCM Thread-Index: AQHZoxXsdZZJuneyjkGOjlBgNC15HK+Tc+Zw Date: Tue, 20 Jun 2023 09:55:13 +0000 Message-ID: References: <20230418092325.2578712-1-suanmingm@nvidia.com> <20230620012322.788099-1-suanmingm@nvidia.com> In-Reply-To: <20230620012322.788099-1-suanmingm@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR12MB5396:EE_|BL3PR12MB6379:EE_ x-ms-office365-filtering-correlation-id: 05562f63-ad9b-4db4-3539-08db71747181 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IY2uDX9cxLqMu2V0QI0ykpUDv/FeZEyrbSO5nx9hqKtWSqorhb/cOhuqnE73Splb6EMVcmWPCJ62N+XbEucSTpb1QbetC7OtPJbER5ZDHYrx8yjSFXq16+jD2bkq9AIwm4qMQvW0VvDHOH1n7DgedTyvDv7tfZUL6G2ShZz2U9Nw4C1K0jiznBwAQBzlWjbHSPivt0/IlnW5n4mcRw/ZRjF2CSRCqcPe5AK8lZweWB7KjlvXXmgNPaIg0Im/Yfg3HLamvLGFyKfXZhr8/0CGh+W51aNZQI6juU42Nb4hkQmjDHTO+HNX6Wgr3SBDbj5L59eiIWZ/yRj92lNv5lUWIif4cId6eT3GnOi28Yu386TeqSNt1h6LMBXpWzW5HSzDPh9htmClDX0Wm5qRkBlekiwa+4MTiYLAJvWyVECslRT/5ebL7k/t/ryRK0BEtkHHorguVeqPjZh0+AeVUKs63gfS20tihlz2i9j9ggXrXSOMay+/TP+ZTJDidPq08ydaemRk7WzovS/WgVP8yUfVxPrG9T/JVHiwcJchZLp+1H22yUU9I6sZktDsJpqvcn8z9Jqkx7wdlhZsxDQccgHvG5tHPOx5k9QS10vrRHZbonIRBS6YoIxA7MHBPaZ+m5q1 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR12MB5396.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(346002)(396003)(376002)(366004)(39860400002)(136003)(451199021)(52536014)(5660300002)(478600001)(54906003)(4326008)(66476007)(64756008)(66556008)(66946007)(66446008)(316002)(76116006)(2906002)(41300700001)(6916009)(186003)(7696005)(8936002)(8676002)(26005)(6506007)(9686003)(83380400001)(38100700002)(122000001)(55016003)(71200400001)(33656002)(38070700005)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?wV7XjQp54FGNWcxmQxawDxUbVlOLYUm71k0e4ZsjkqW5H4MmRZo02TfZbqZX?= =?us-ascii?Q?OhS+Q1O1Vn/0o2cXs4lSAC2dyr3mUPuWTQiyiJGsaeQaXg/+oMFv5Rw1jqKv?= =?us-ascii?Q?ifCyD6D3FsMuMxuFHkBDMmDDldbbeus2Io2vkY/lSWXJmF8fbq7Prk0iy81V?= =?us-ascii?Q?VFddtFksLrEAyfX7nBK41fvC9ZFlZqnToejM5JZ8YHAuUyvpgR9wH9Mw2f1X?= =?us-ascii?Q?FSMXyzXbIh12Dx51JypDYExUzzRMveSATEJOljpdjFcK3aJf4YROTBwtI+Up?= =?us-ascii?Q?aaRtK5oTJolW6M8mx+QYP1PN+AVZnpzWDKbWfFQSpP1NkbOSCv2lqX9n0+Sv?= =?us-ascii?Q?zoFzlDTjWv1FT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JQE47?= =?us-ascii?Q?BTZSk+F7v6RhuAoGlehTr54FYXpfjFPFIWyt7TLw9w6+skUOEdqddK/jDRAO?= =?us-ascii?Q?pCBPS96Vo9B8TX22id0OKyJXKVlpbi6eIqTBIIMNhYTfRldx5y0NFY1mVZdP?= =?us-ascii?Q?MmA074Lt8vm68FC9nfnYPHnop/donJhM0YVGtX1+nX4DZGUk8qDjjb2EIR1q?= =?us-ascii?Q?4L7Chqp5NRjaxWwF1QVuQbWhasHQI/WPV83BgeVnBy8fhnmL3TYPKdYmgknh?= =?us-ascii?Q?nx0ilQ1H2k0ZFIjr9SidFuj2Q8YePfT4OdveMSUSMRffI+etTdRYRoNzsFk6?= =?us-ascii?Q?OurAVWWNuzDSVQKWHaNGLisNRiRS8IMgTqweYWT7?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR12MB5396.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05562f63-ad9b-4db4-3539-08db71747181 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jun 2023 09:55:13.7304 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: N4U8+/SZzGcvRe13OKBVoYOw7DVMHsoI67MKlrOo9fedgb2ZoNp48kjWVutDel+D4pT6EWsi28RCtMxETvlFGA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB6379 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 Hi Akhil, Maybe due to "To" is empty, it was not collected correctly to the ML. But i= t was in my inbox, and you were cced. Thanks, Suanming > -----Original Message----- > From: Suanming Mou > Sent: Tuesday, June 20, 2023 9:23 AM > Cc: Raslan Darawsheh ; dev@dpdk.org; > gakhil@marvell.com > Subject: [PATCH v2 0/9] crypto/mlx5: support AES-GCM >=20 > AES-GCM provides both authenticated encryption and the ability to check t= he > integrity and authentication of additional authenticated data (AAD) that = is sent in > the clear. >=20 > The crypto operations are performed with crypto WQE. If the input buffers= (AAD, > mbuf, digest) are not contiguous and there is no enough headroom or tailr= oom for > AAD or digest, as the requirement from FW, an UMR WQE is needed to genera= te > contiguous address space for crypto WQE. > The UMR WQE and crypto WQE are handled in two different QPs. >=20 > The QP for UMR operation contains two types of WQE, UMR and SEND_EN WQE. > The WQEs are built dynamically according to the crypto operation buffer a= ddress. > Crypto operation with non-contiguous buffers will > have its own UMR WQE, while the operation with contiguous buffers > doesn't need the UMR WQE. Once the all the operations WQE in the enqueue > burst built finishes, if any UMR WQEs are built, additional SEND_EN WQE w= ill be > as the final WQE of the burst in the UMR QP. > The purpose of that SEND_EN WQE is to trigger the crypto QP processing wi= th the > UMR ready input memory address space buffers. >=20 > The QP for crypto operations contains only the crypto WQE and the QP WQEs= are > built as fixed in QP setup. The QP processing is triggered by doorbell ri= ng or the > SEND_EN WQE from UMR QP. >=20 > v2: > - split XTS and GCM code to different file. > - add headroom and tailroom optimize. >=20 > v3: > - fix AES-GCM 128b key creation. >=20 > Suanming Mou (9): > common/mlx5: export memory region lookup by address > crypto/mlx5: split AES-XTS > crypto/mlx5: add AES-GCM query and initialization > crypto/mlx5: add AES-GCM encryption key > crypto/mlx5: add AES-GCM session configure > common/mlx5: add WQE-based QP synchronous basics > crypto/mlx5: add queue pair setup for GCM > crypto/mlx5: add enqueue and dequeue operations > crypto/mlx5: enable AES-GCM capability >=20 > doc/guides/cryptodevs/mlx5.rst | 48 +- > doc/guides/rel_notes/release_23_07.rst | 1 + > drivers/common/mlx5/mlx5_common_mr.c | 2 +- > drivers/common/mlx5/mlx5_common_mr.h | 5 + > drivers/common/mlx5/mlx5_devx_cmds.c | 21 + > drivers/common/mlx5/mlx5_devx_cmds.h | 16 + > drivers/common/mlx5/mlx5_prm.h | 65 +- > drivers/common/mlx5/version.map | 3 + > drivers/crypto/mlx5/meson.build | 2 + > drivers/crypto/mlx5/mlx5_crypto.c | 673 ++--------------- > drivers/crypto/mlx5/mlx5_crypto.h | 101 ++- > drivers/crypto/mlx5/mlx5_crypto_dek.c | 102 ++- > drivers/crypto/mlx5/mlx5_crypto_gcm.c | 997 +++++++++++++++++++++++++ > drivers/crypto/mlx5/mlx5_crypto_xts.c | 645 ++++++++++++++++ > 14 files changed, 2016 insertions(+), 665 deletions(-) create mode 1006= 44 > drivers/crypto/mlx5/mlx5_crypto_gcm.c > create mode 100644 drivers/crypto/mlx5/mlx5_crypto_xts.c >=20 > -- > 2.25.1