From patchwork Thu Aug 12 07:12:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 495954 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp83041jap; Thu, 12 Aug 2021 00:16:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5voyz+TA8oooqcQ/7xQMa9kDdlcQvYtJUTlYDLttCOexUGNcBUpB6eWB5ROZhYWeUHU7C X-Received: by 2002:a17:906:858d:: with SMTP id v13mr2261913ejx.424.1628752569411; Thu, 12 Aug 2021 00:16:09 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id j4si1546748eje.704.2021.08.12.00.16.08; Thu, 12 Aug 2021 00:16:09 -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=ecTh89Bc; 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 B96904014D; Thu, 12 Aug 2021 09:16:07 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2073.outbound.protection.outlook.com [40.107.21.73]) by mails.dpdk.org (Postfix) with ESMTP id C491540042 for ; Thu, 12 Aug 2021 09:16:05 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WfRY/7RrItnbc684KREzLS48llNHT0sqe4QQJY9bG61LbTnjKKwbEGFNjuETZdTsFXHpouFXjryflqBarsuOhzT4J6KSa4df7usWZ7jWdAqzsHXBJM1Toq8fBq/YqSiZ16ctU0cbUt0XQlwCrTjvdmsw1c71cv6EKPDAzahVzlI7YfKyT8makwnnCJpnDv5d8qMlnLsak9JfiK45rhVrUC5mJMPoH0FGY6dSkQyHeykiCPBxgc6vhph2Q6YLxaJfxg/BKcG2c4x4dfghKAzveJiMN1AOpXry1s8fSsrHRXwjoTjECvKznUve1OkIJl2ygFB25OFDQUgna+ook8PFwg== 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=lVNZwdfEAGE9+CWj5b8Ew4vMDg5YwOkBIsbtevc835k=; b=ZGWXyvaSy07BRIGMlh/fxm/WgikqyycXTPGMVnIGEwqu1rJcLifyJ3CSjzfdXcsVHAsYtXofcvjjeW2T2bh379CN1jLmE6ywhUhscf007VRonD9Y9mi8gFhditU7Mwlf3blnnzy9G5HTmpOIytD+dkk+FLsuzrsxObB3XrTjcSDPXTwBa5mHSoGdTmMmPS0tCxdJR62wjf0vXkaAiITd1FE/q6K8dyVrd05p2iS9ETv7wInaBPPQijta+y8+UOjlXhEQYFDnJwv6s6CHgDriUX0JZnin7IfH/6XF/6NcKK++HoQ79FPRS4VGyaejaFhLZihGSMf/vYfu2eDdeedD3g== 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=lVNZwdfEAGE9+CWj5b8Ew4vMDg5YwOkBIsbtevc835k=; b=ecTh89BcXl8H4e1UechklBeKV9O3PCnrbpzRUlDR6Qted9ZXwI6QALvTOsn7Pv+xBfJK+ao2DCB8qTpW6ejhA1oknlu+KNxzAZ2C7GqaB7N6HEe3+01TtM/axTFGyqZEVUecSnGvQWv5OutRfc2Hp8UmqppVQLlOS/NKr4VmKPQ= 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 DB9PR04MB8493.eurprd04.prod.outlook.com (2603:10a6:10:2c5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.17; Thu, 12 Aug 2021 07:16:04 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793%9]) with mapi id 15.20.4415.016; Thu, 12 Aug 2021 07:16:04 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Date: Thu, 12 Aug 2021 12:42:28 +0530 Message-Id: <20210812071244.28799-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SG2PR02CA0105.apcprd02.prod.outlook.com (2603:1096:4:92::21) 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 SG2PR02CA0105.apcprd02.prod.outlook.com (2603:1096:4:92::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14 via Frontend Transport; Thu, 12 Aug 2021 07:16:02 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 42ab86bd-ddf3-416e-0011-08d95d610ba6 X-MS-TrafficTypeDiagnostic: DB9PR04MB8493: 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: 9BlGNIkv5os9X7crCMpiLHzrtdjQc7spud4e8WYrB+qz+UeSMxe1YsKOthVGwmFcrOpCscoJvPujecDw375DN+AwsCo1nFAaJ7GQT+ZKzmH7vHwrxUggPV47BgtzdeHkmq3FRVr76tjelESSilk1H9+IsQmXmNN3lbMtqOxGNndTu73iZZ5ZOjHv4Dp7AmFM/ZGD6KmooArhZoK1iBAviydBTm68I/6g6p21wAGaEp9DExnm+S4e4TDTimfL9GKxP60mCOJ8xy4WKGUQiUEJk4AzcNKL8ot+CC9j4woDh6GF2pdz/nOpO2dfXtUmBCXEJiCq6AfEgrX5VYxs8HPnyN0qJxuPmS/R/KgmU3CNxvYhm5b6J6TMrVq8hWDGBDX/4FqH+OuBbsOap4dxgzTBeqeJ9X7R4DILDuUaGmO2xE0rnxlUeKDrrcHqfve+SK8Uhf4dsZCQPll7AsgRKwzg2hrioPJ19jzTZjbcH9BmwxQBbU01u9GMBYRv7sgRKeRgNkci7pvsJkdp4EB5cBbFBoFAhuQMzMH2gCMwv4ZhCBB2559KoW/A/nqXm57or6OA+e+7HGAY7i9CsU8H/+iq0Gv3AH5uk+p6Z4rdII45WG0FKFzIeoAImFZOTVmU9TtRee5F1vIrAYWqYST3U0+ioUJVwhLXaHCvuSVEsKVmrh/78NWIAkGjVhUKoN34Yt1EneEHpmXu1kiGQWKHhXGIqg== 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)(396003)(366004)(346002)(136003)(376002)(39860400002)(6506007)(52116002)(86362001)(316002)(6666004)(8676002)(26005)(8936002)(36756003)(66476007)(38350700002)(66556008)(66946007)(38100700002)(478600001)(186003)(2616005)(6512007)(1076003)(44832011)(956004)(2906002)(5660300002)(6486002)(83380400001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PF6oTgPixasW+HRD/8u83ONhhtJGe6h7R5y/97hxQXNtABid/pqech5mcoeiDXwzjQhMTLFeqhblnqA+MBfIfe7qC1WAJN98RaRQA8AxFPVlCsRA4QYFfjb2+X7WQcAB3AtGA/Q9VP5sMdKp3nK+Kem+LdDeGDO6QtXhomqWw/9Tc+xKcbZ5WzEcEqGYsrN+5kjpvFoL4q0NZNw7QR9fgUZK/ap4Jyxo6c0PMLqt71xuskV7Yv6h7/P0YvGbbNV0cCXnijtoRyYS7MwIVPaVOSmDfSbE1asj+siwo21CbD2yS39TOlT9LZV4UgVeOQe2/aF8ahZ83xk4h X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 42ab86bd-ddf3-416e-0011-08d95d610ba6 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2021 07:16:04.0535 (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: ohIudnbs8/k3s5In547WUWIKltIENxbrlWSpO7/NxhX75buILG+WgO7yyxr6C79BRLNG5AEKGWLaRDtWBmUEWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8493 Subject: [dpdk-dev] [RFC 00/16] 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 (12): crypto: add total raw buffer length crypto: enhance raw process for protocol offload 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: fix ctx memset size 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: enabling 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