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 4196FA0547; Sun, 17 Oct 2021 18:21:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F2240410E1; Sun, 17 Oct 2021 18:21:33 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60064.outbound.protection.outlook.com [40.107.6.64]) by mails.dpdk.org (Postfix) with ESMTP id 07A3C410EE for ; Sun, 17 Oct 2021 18:21:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RGkcVFIGS6SnLXxpdTvnNYxMFPpafbduLON30hkyTfw1XNuI7rsSVF601vpuJp84fciTdtihE5XTGldsoY18KWbM+lLSxLnWJ46lRcRs2UDFQ32NFRc35KISC3Q6OiUIvvC7Pf//nhdPMqbE0TJd3Ce7VMJ4GdmkE7sHrztVGQVNin5DHAMChreSA+mFiue+tYAd3Le3R5bvZb4lKyAXGPPFUbyaRBK4sYhludCJk9iBX7C7U/mBQarB4rHZVEU5ucG34HNgaYztYB9afhU1tZ5IP3PLeGtp7L+r7+tLhwz8OV6UNIO2iuM3VKPOrdgRRXVQO43SO0r0fdsOPOek0A== 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=txJ9943CMneMqoFtADNEIvhhHS3vToy6RrcoMDg9aDs=; b=GazUVR9qwd+fU72Q3GgzpWoImYXJPxDPjmrfYnDIlX0DYFLtbx2PpTmTzjriJrXcSJFZVDhDFuYu+Pg1z5tGK0hWpCuiTqu76m2RozQtWb2Lz5Ln5JNw7lYz3FrHsSxIdBmw+c1TAt86DNimfFm7bPkt1UW8YgZ1C6vJlnWTMa0VHzFhsoR3L4CAiW9H7FoGeFgSK7eOvtBmh1OZ1Lly62uIfNfScKqnrk31JlxlK8faeIxp4MStuS3pmAtoVV7/uR0XkURTt0GOaPtPODkw4Gwrm5UgQe+Vx0la+Dbx8Zt+EoQrWxqhwh67rEEOcYWKGv3fF4UdmBzJWHScXrMxfA== 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=txJ9943CMneMqoFtADNEIvhhHS3vToy6RrcoMDg9aDs=; b=drLzy2y+sYt/E36AGomiEInG+PW3NcXzOpcNZzSxcpfcOdL9jG5A8q0td3pg//Qpa1Xr8OWEZXr1j0IBKQzFAnG99vAaSNWeb7y7Xo9BlZw0/7pioH8KUIl2NbLYL65qS/EBIiJmmHXj3iJ47/0BpF9APBC0Mmg5t/mn2t4VAU0= 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 DU2PR04MB8615.eurprd04.prod.outlook.com (2603:10a6:10:2da::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15; Sun, 17 Oct 2021 16:21:29 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80%3]) with mapi id 15.20.4608.018; Sun, 17 Oct 2021 16:21:29 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: konstantin.ananyev@intel.com, roy.fan.zhang@intel.com Date: Sun, 17 Oct 2021 21:46:39 +0530 Message-Id: <20211017161651.9220-4-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211017161651.9220-1-hemant.agrawal@nxp.com> References: <20211013190032.2308-1-hemant.agrawal@nxp.com> <20211017161651.9220-1-hemant.agrawal@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0053.apcprd01.prod.exchangelabs.com (2603:1096:4:193::7) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 Received: from dpdk-xeon.ap.freescale.net (92.120.0.67) by SI2PR01CA0053.apcprd01.prod.exchangelabs.com (2603:1096:4:193::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Sun, 17 Oct 2021 16:21:27 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 52ee07d2-b9b2-4ff2-67bd-08d9918a2caf X-MS-TrafficTypeDiagnostic: DU2PR04MB8615: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8rL53T/1txl/SG9tYDOLVX5kzzl3pxxuyG22WDqkHbMiaZ8VOUTFq5vXvHrTq2i7T7PkX5+8V9hWfxPh4pqiTdv6S2tIfTMdqATLj0PSK2W1/jQD0NcTYLGRqsRkIDFEJgXQXA01VDgbXm0EdjF801kC+bY4jMcc2pH17EoLSgxDxqx1dOaeHDWk+zVC0yp5l/+N9cyTTu/x79sXdzcIIACYC7fV00gqjuKdtBzmmh2WnQymIOT/+x1U7j5OpEHkoD344RvbdemPe2Jfinmad6Bpz/7nD+cZ40KYMVVN9lcXju+LzEvd3uZ3nmvfet8y8r1fAEQMXbWrZoCNaY6fSDRbqukq2Zwsd5RkpjH981lVBfQCNsoYwuMExCtET345Nel6LM7FHMdXw5T/RsgmvL/EIEWFr0SiVFoYdlQ46xbBzPCZpc84tqAA61hAxG+pesYuHTe7kTKcDrp3bJUUrOIIpO1DQ7OeRCgP3bVgd6jGq0uVvMZvi9JsxXbsEcD1ehxKPPPs0Kv7Mp0MPx2dNFBjHC4uNB1/GFGKmUQVKsuTfdusPGmXwa92k9TkIlL51kIN4a/vkfAaHc2qPPvsW/Nl/9odHZr1IItc8WyKxHuHnH7f7dkuqrjaiO3etOk9o1902mKBIRPEJZzCEVhvGgvdymHyhFFe2TpsOz5LQeA9Xxj0Q33CH7t7BXEdJTWkHyfV9ahaF9hiUoIkzkT6bw== 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)(6486002)(66476007)(8936002)(66556008)(66946007)(86362001)(52116002)(36756003)(5660300002)(38350700002)(8676002)(38100700002)(508600001)(6506007)(26005)(44832011)(4326008)(6512007)(2616005)(83380400001)(6666004)(1076003)(2906002)(316002)(186003)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?NPj8dG9Ae35gJ++baQHSS/qS2m0/SGNxD88sgjxe/e8Y0I6MmF33ghQJokGS?= =?us-ascii?Q?hoocUr7XN7pryROBtmE0T2oCjGh4ZQgfd/vbZKSK7ya/vclNOmooRB86h8hj?= =?us-ascii?Q?ICzd0TMMLIwzz2NRnCULIsAGCYV9CxqLoT5zszyZNHiCD7ZCzfG9XqkvIBOr?= =?us-ascii?Q?ehOeFc1H8PrAgkECmbIWcj7viAi11apHd8w2/wlxddn9Ss9DPtcXlKVx2UNo?= =?us-ascii?Q?Z+/luBOmbMsC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ascii?Q?VX97ZXs7JcMPkDD7FeFH1VnSPBLkrmSfbc+3CUDzX6Hq0pcUe6xP+NRfv7im?= =?us-ascii?Q?tCqSWY7mJDOQYERsmYzQwOaw8+2yq+RxizKgAnrL/kK5LRC9dxe9sEOiZkur?= =?us-ascii?Q?3gd1ePT8iR7OUbV6dHhV770WgCwKii3CeOHq9VB7OPrq8LpH0I9wrYT4/aqM?= =?us-ascii?Q?31bR5PMUKcA0SkUhmpe8MmRL?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52ee07d2-b9b2-4ff2-67bd-08d9918a2caf X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2021 16:21:29.2625 (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: ASGQnjmlJ+LrjbzYjz3E/FGjaEKolgXazpVY4wlv8ZLlIOSL8OwVaa9YyP9kBp9zWaNYi8xwfmEyKAaLb1jo9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8615 Subject: [dpdk-dev] [PATCH v5 03/15] crypto: add dest_sgl in raw vector APIs 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" The structure rte_crypto_sym_vec is updated to add dest_sgl to support out of place processing. Signed-off-by: Hemant Agrawal Acked-by: Akhil Goyal Acked-by: Konstantin Ananyev --- doc/guides/rel_notes/deprecation.rst | 5 ----- doc/guides/rel_notes/release_21_11.rst | 5 ++++- lib/cryptodev/rte_crypto_sym.h | 2 ++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 0e04ecf743..1d743c3a17 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -174,11 +174,6 @@ Deprecation Notices and ``rte_vhost_driver_set_protocol_features`` functions will be removed and the API functions will be made stable in DPDK 21.11. -* cryptodev: The structure ``rte_crypto_sym_vec`` would be updated to add - ``dest_sgl`` to support out of place processing. - This field will be null for inplace processing. - This change is targeted for DPDK 21.11. - * cryptodev: Hide structures ``rte_cryptodev_sym_session`` and ``rte_cryptodev_asym_session`` to remove unnecessary indirection between session and the private data of session. An opaque pointer can be exposed diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst index ba036c5b3f..6e274a131f 100644 --- a/doc/guides/rel_notes/release_21_11.rst +++ b/doc/guides/rel_notes/release_21_11.rst @@ -232,12 +232,15 @@ API Changes * cryptodev: The field ``dataunit_len`` of the ``struct rte_crypto_cipher_xform`` moved to the end of the structure and extended to ``uint32_t``. -* cryptodev: The structure ``rte_crypto_vec`` updated to add ``tot_len`` to +* cryptodev: The structure ``rte_crypto_vec`` is updated to add ``tot_len`` to support total buffer length. This is required for security cases like IPsec and PDCP encryption offload to know how much additional memory space is available in buffer other than data length so that driver/HW can write expanded size data after encryption. +* cryptodev: The structure ``rte_crypto_sym_vec`` is updated to add ``dest_sgl`` + to support out of place processing. This field will be null for inplace + processing. ABI Changes ----------- diff --git a/lib/cryptodev/rte_crypto_sym.h b/lib/cryptodev/rte_crypto_sym.h index 1f2f0a572c..c907b1646d 100644 --- a/lib/cryptodev/rte_crypto_sym.h +++ b/lib/cryptodev/rte_crypto_sym.h @@ -72,6 +72,8 @@ struct rte_crypto_sym_vec { uint32_t num; /** array of SGL vectors */ struct rte_crypto_sgl *src_sgl; + /** array of SGL vectors for OOP, keep it NULL for inplace*/ + struct rte_crypto_sgl *dest_sgl; /** array of pointers to cipher IV */ struct rte_crypto_va_iova_ptr *iv; /** array of pointers to digest */ -- 2.17.1