From patchwork Wed Aug 25 07:14:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 502231 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp345118jab; Wed, 25 Aug 2021 00:18:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOtBmORD3ymrwgWUhHdzv1rV6NZLmPUjDBPgUCMK4g/cfhnfGUwW1lsCSKS2iZBdAaHqIx X-Received: by 2002:a05:6402:27cd:: with SMTP id c13mr19867017ede.266.1629875927357; Wed, 25 Aug 2021 00:18:47 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id j10si7629769edq.258.2021.08.25.00.18.47; Wed, 25 Aug 2021 00:18:47 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b=GExSNE4a; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF8B840041; Wed, 25 Aug 2021 09:18:46 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60085.outbound.protection.outlook.com [40.107.6.85]) by mails.dpdk.org (Postfix) with ESMTP id 218604003D for ; Wed, 25 Aug 2021 09:18:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FsTG8DTlNZCzCeezn/sjz4wWdZLcBi7UMsRfzPinXvFgV22fopP5oEGvp7FnWWEIfAqpb3nvTq6K2a/OWjXaAflYG/QMI6N1PtO6J8iwf7gIj/U6H6hZmYtECcICfizgaGjpJNUSXbCjTjNP3Frgl5YEIeD32J+gI2nC0NAIGvpqMxGxfyZHc5GRVdUz5D9GwpsXWv2WtmqlW6iofXVzjXla4sR40fSQBEFXG+fS2+h7fZEJk1VOBEvkY7JGs7IYGZk5AaSXNWT9O5YponAWdzT6pc4jwAy812o3FE2WqoiPUnqj2SatcRL7cmjaLE7F5OEzhxkwJkJqAxkU+mwp6A== 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=HNIqWfLE3Onknieeb1ZlMw3JWEULR9Fvh39WrWpeHfI=; b=FjIl0bCcn2Yryh9JIn8jXrtmL22PfBdiDuItR1i2edP271gjhCdDeyYNwNE9G4yelhXL+GRslxfuJQUHAZZz6fBH5aVL33A/NuERNZ2xdjrZN02oMFc7eaDRS/Tasai0YV38kpKQZ5l/VnrS/ILNZUcOgkTTRhQlts+F1d4DFhKpVqRnqfZ1EdUPz2CkyuYsZdTKONe0GHg9PNv+HWzuXB1a6BiImUuwJLCAUBQ1yZNm6K1LFwejEMzO64XbL4feq1laxoxjEv/D9MODHCi7hhgFLFdRBmdN37ArnA8jCNJBdjXYVvhhdwKTDESZUMgiEezbX0teVYcCykOMWWeI2g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HNIqWfLE3Onknieeb1ZlMw3JWEULR9Fvh39WrWpeHfI=; b=GExSNE4aklK7BNof9pqR8h7l3UzdL8LrYl7+UB0TyGd4sFhqf9bE613UyffLnmZGFQS+/mfUxwb4BhU5FF7aVhoWK8caEKl9oljHnl5cTPOtHv/BRDl7BABUY6HHuAy3CM9XExBOYWwvsCYdvNke/H48r62Tpt7Q4pTMzcuFSgQ= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) by DU2PR04MB9018.eurprd04.prod.outlook.com (2603:10a6:10:2d9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Wed, 25 Aug 2021 07:18:44 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793%8]) with mapi id 15.20.4436.025; Wed, 25 Aug 2021 07:18:44 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: konstantin.ananyev@intel.com, roy.fan.zhang@intel.com Date: Wed, 25 Aug 2021 12:44:55 +0530 Message-Id: <20210825071510.7913-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812071244.28799-1-hemant.agrawal@nxp.com> References: <20210812071244.28799-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR01CA0126.apcprd01.prod.exchangelabs.com (2603:1096:4:40::30) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from dpdk-xeon.ap.freescale.net (92.120.0.67) by SG2PR01CA0126.apcprd01.prod.exchangelabs.com (2603:1096:4:40::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19 via Frontend Transport; Wed, 25 Aug 2021 07:18:42 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b0767a9a-40df-4265-ec24-08d967989266 X-MS-TrafficTypeDiagnostic: DU2PR04MB9018: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BmyDg2FSKtFbrGjTyq0VIO0uVLpSAi8hG92oL65d3lAFKr6G2GE7v9iS5Y+HkOiExTCz6u59wlGp0lGUvx8/YSAxWfZWJgKBDxddJMGRft6+9RXSXANaC0b637WyasyuL0lvp6XTTcGvHnYaaoM3+OUjBsA/oel7c2Wcg8zFRbxltG6W4Og/B2hAWER0R5r/cMw7UqFhxNvUKeX65AOX6nfgf+BL8LAY8Z9TOp6DLhVoMRK3cNSrKPqxHP47d7rE35BkmADibISVyzVX+sAMeRsmFr6iJrpFsSNaJmixYqirZiWy6L9vYn7FrbIDGaHHT6wI9+7DSWb83r1X3BozDht1WCKXaQs/wH4p19zCVXXXAvL720fjewwsZnMqn1FhDEy5kd9HgQMiyVCdF908MlCiJILTCfN8vT3OGAMqcQsG9G1WTVJSLY51XdBq/lKC5MR3AbTt/vIwPwtYNa+scCL/GJ2JNn+Sd72LGK24RW7F2P9O7gl4LrqbEnRjsQjhOLwVHvM795gTJVBJAcxwULQlYWLxWnmdms/UqvGIzn0/Z6wmtcCXG63wuNUX8D3hoaMduZ1S2ql3TjRENzLuNcu/gX1TpO9WzIvLej8F71uB0Y8UK15b75bPGAJxOJWa0ks6hPILpgPaJMS1R0PEt0KwII8bTxCC1Mx3KH8/v22GgHNZKlNAkqvuvOQAQkX7tT0fOwq5Q8SlmcZ4OoMb3Q== 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)(316002)(38350700002)(38100700002)(83380400001)(5660300002)(6486002)(36756003)(86362001)(52116002)(6512007)(2906002)(8676002)(6506007)(186003)(4326008)(66946007)(8936002)(6666004)(44832011)(1076003)(66476007)(66556008)(26005)(508600001)(956004)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?gu0OiCevo35fZovBKJ7izR31/?= =?utf-8?q?pUeOo1wuZlgn5O+YOqMxxsHPuh4yHSnXZAbA8WVhlQfZTO7RKLeNayVI?= =?utf-8?q?GJXSP6SqeAB852xm8Kn8r3yHBlS2s/7ZoQ7WfH7lDcW6HCYjedJ4ShpF?= =?utf-8?q?6fqrRd5I4R8qJ1meYEe3RaFCl7XBnElcmyRBeTVHiSMxqVwwjr0AB30Y?= =?utf-8?q?J3NRtTU6e1OK/CbJDqxx1smxxSgQGmpDhKoWcwc5d+sPUySoZ7nplbgy?= =?utf-8?q?XVcg9okUyOda9AKKq2PFtWJow+nXGlcRYqB2PRQzUsVOmc5SP/+vbRSx?= =?utf-8?q?QhPvA6YjsboL2kdxV+JQ7FzINE7Oz1YQ0osGpN57YV+kWPuwZs0zI0fC?= =?utf-8?q?6mVcWwRSkgZAu265OhbS3nUJjKihX+FNXLKemqEwTbrhJU1sC0fJJFd7?= =?utf-8?q?E6VJ13n/zKK0Zm//73cs6eb40HHtX8Q5jzX3DzYPWruDR9VrArjRN5Z5?= =?utf-8?q?QPk9Tfa8TRl+rfl2iwbef8P7Gj+qkJKck4aCzEuIQ9QADQQoArPWoCjw?= =?utf-8?q?5mnEHuk9UvfmKqlvbjouAqmJKPsX14DLjL1qxmEVbp/n0A59OVObxX2N?= =?utf-8?q?FHdGzmDlhrKEBmIMRoQY6LR95G/2VBdNk3eg8w0wALlYh0e4EYsnNwUz?= =?utf-8?q?3zhd2NODr7o3IR4aCUrYWy86AMwvDlyMf+utV0czNGJSugOG9vdt+Jbt?= =?utf-8?q?2m2RAR/lPp4mIiYuF8KmomXlbmC8xWyfAJBmLh90crHWSkIP97dX2Lzq?= =?utf-8?q?WnOu3B1OnhKdm/azlcoU32vKmRW18ADx/GbODNuli2Uj+ORw+GJ45dxu?= =?utf-8?q?1RbnMUz48TRMrQJQGkoJ6f/Ezch8k8LL6ubpL6YwU29VpO1ja46N4dNa?= =?utf-8?q?Eseq/LVVzXnrdH6ZP6ylPbKIBfaoUKAMqPlc/iE1N8fcPpgbjhTNGK3t?= =?utf-8?q?rofu+Exp+2s2DWB97Mo2vjSpZ0fsahLqtwJQYZxWCm996Zoo36j8/ai5?= =?utf-8?q?tQsE7/CUC8NBhR/wmgW5ITQRsw2vy9lgdJmAV7+aR5O6EgvbrH3FXMdN?= =?utf-8?q?pR6wI9/2nlP7SE6AGynY2HjVymtyMxkDbQ3KMRHfxtOYEjcQuXFgNvyO?= =?utf-8?q?YG6tkkh2wkcaBWeLU8BXs87nklkIZgoudChJzTloZZSJmqTJ9UQkZ6Oq?= =?utf-8?q?CzzINs48aMD+lMYwbW+iNer0Tzg2I5R290vdg9zW2d4dCvi5pJsKJJHL?= =?utf-8?q?fcN2Wf4VPRHf3/w4PisyhXDJlk0rmc9YQq3FhYh5TqEPnFJBekqkGNvD?= =?utf-8?q?jOKipKa+ei5RJgQzPUA1/KheC4XPxQBrJyUFkv2xi6WwIdQ4fc/dYKxX?= =?utf-8?q?S1mUI8P7QLVLKD1RJ+wYUzSa9EeHVsH?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0767a9a-40df-4265-ec24-08d967989266 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2021 07:18:44.1730 (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: 2vHEAJQQj6PgKIbPCsPNLI2wwFLNND/8CxsO8+HOp8F+4ds8TE33xnKIijRYQh5xEEmV7f+U6/zOteEjO4o0hw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9018 Subject: [dpdk-dev] [PATCH 00/15] crypto: add raw vector support in DPAAx 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" This patch series adds support for raw vector API in dpaax_sec drivers This also enhances the raw vector APIs to support OOP and security protocol support. Gagandeep Singh (11): crypto: add total raw buffer length crypto: fix raw process for multi-seg case crypto/dpaa2_sec: support raw datapath APIs crypto/dpaa2_sec: support AUTH only with raw buffer APIs crypto/dpaa2_sec: support AUTHENC with raw buffer APIs crypto/dpaa2_sec: support AEAD with raw buffer APIs crypto/dpaa2_sec: support OOP with raw buffer API crypto/dpaa2_sec: enhance error checks with raw buffer APIs crypto/dpaa_sec: support raw datapath APIs crypto/dpaa_sec: support authonly and chain with raw APIs crypto/dpaa_sec: support AEAD and proto with raw APIs Hemant Agrawal (4): crypto: change sgl to src_sgl in vector crypto: add dest_sgl in raw vector APIs test/crypto: add raw API test for dpaax test/crypto: add raw API support in 5G algos app/test/test_cryptodev.c | 179 +++- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 13 +- drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 82 +- drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c | 1045 ++++++++++++++++++ drivers/crypto/dpaa2_sec/meson.build | 3 +- drivers/crypto/dpaa_sec/dpaa_sec.c | 23 +- drivers/crypto/dpaa_sec/dpaa_sec.h | 40 +- drivers/crypto/dpaa_sec/dpaa_sec_raw_dp.c | 1052 +++++++++++++++++++ drivers/crypto/dpaa_sec/meson.build | 4 +- drivers/crypto/qat/qat_sym_hw_dp.c | 27 +- lib/cryptodev/rte_crypto_sym.h | 13 +- lib/ipsec/misc.h | 4 +- 12 files changed, 2390 insertions(+), 95 deletions(-) create mode 100644 drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c create mode 100644 drivers/crypto/dpaa_sec/dpaa_sec_raw_dp.c -- 2.17.1