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 CDBBEA0C46; Fri, 6 Aug 2021 12:26:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8CE91412A3; Fri, 6 Aug 2021 12:26:02 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80074.outbound.protection.outlook.com [40.107.8.74]) by mails.dpdk.org (Postfix) with ESMTP id 324524014D for ; Fri, 6 Aug 2021 12:26:01 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cZ05KvusWYRSS326ezGUA9Du3B47zQAjpRKlNaUy2EZKvmNdWMo8N0poiC+5kzhgggASaFzqH9jzFbBkzVG3V4AsA+JP2XkPCtXsI5zWoaVG0Amj/wjslWU6O2eEW7icZkOqyLut3ARAJsGz1MWAej6jH8icT9U0xhBpUYjmfmiBYqfz+adcWW4FC9wDER0iQmretxpVMT1IN7S2JHCF9fZa9P4Z0n4lQn34JujtCA/14V3xoLl8UHdzEaiibut9CXe/vpezBbG9haQ8dKuzCdbg2m4DjuujTe4egAVPtuhZjKddU0Ct/mfLWXSoiSVp/jkPqshlPpe8iK6ZxQelSg== 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=wfckEX63ORTfCb4p5FYRG36DzVVyJwEY3vx2P6wVZeI=; b=EzmdyzvL74Jpm8PFrYkZ6D2VQra7YXkBo2zEfUatV7sMlcSLnVlw8JSb8aayS2uq/2CKvGq7DVOitYl/1PCqfJ85d0+T2m2kS4A6aK3CfBLOadp6PMmsmcSUuFAP9a7fjOJA8GWQUg4WSdCSuh35hXWVYubNABwlqtDq3XXD+ZYwdfpXQnddQiifUvYj65MpoOmQMiRmQnFlYDsCmcHNwe4z34Myyk+Y6FSUBHejoxwawzh6W9FCp/D+kkNcoODbiftEU1R/KtPDdlaF3qrS4kmWaoQyyn47kiWD3+7J4FqBgVE6XUvVBhou6u6nxQ86wyT2pUnPfRF4jNkQcFnyww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wfckEX63ORTfCb4p5FYRG36DzVVyJwEY3vx2P6wVZeI=; b=MySXSaVIMj89kKtQ4Wx5VGJwvlJmmbLx8raYnB/rH9Npnywpv0Nd/fWTzgrgY9stQ3uPCCGZRHSIpjuMBJIAYNSSvBNHTDK1eVtflE3v3RwXNL+7A2atXwJLJAe23YKlf4X/EEXhWmC7GYPU+TpC44/xrklvE3MC/LCtmagUVfY= Authentication-Results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) by DU2PR04MB8744.eurprd04.prod.outlook.com (2603:10a6:10:2e2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.16; Fri, 6 Aug 2021 10:25:59 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793%7]) with mapi id 15.20.4394.017; Fri, 6 Aug 2021 10:25:59 +0000 To: "Ananyev, Konstantin" , "hemant.agrawal@nxp.com" , "dev@dpdk.org" , "gakhil@marvell.com" Cc: "anoobj@marvell.com" , "Nicolau, Radu" , "Doherty, Declan" , "matan@nvidia.com" , "thomas@monjalon.net" , "Zhang, Roy Fan" , "asomalap@amd.com" , "ruifeng.wang@arm.com" , "ajit.khaparde@broadcom.com" , "De Lara Guarch, Pablo" , "Trahe, Fiona" , "adwivedi@marvell.com" , "jianjay.zhou@huawei.com" , Gagandeep Singh References: <20210805080538.12063-1-hemant.agrawal@nxp.com> <20210805135529.14146-1-hemant.agrawal@nxp.com> From: Hemant Agrawal Message-ID: Date: Fri, 6 Aug 2021 15:55:48 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-ClientProxiedBy: SG2PR01CA0112.apcprd01.prod.exchangelabs.com (2603:1096:4:40::16) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.7] (122.161.67.100) by SG2PR01CA0112.apcprd01.prod.exchangelabs.com (2603:1096:4:40::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Fri, 6 Aug 2021 10:25:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4cf3527c-e438-4073-952d-08d958c4953d X-MS-TrafficTypeDiagnostic: DU2PR04MB8744: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 110LDf1CLxce08Clgbpfmoox5WcQOnl37JWmwo6P4LgOQOvcwp4psjvnTiZ8/SL9+Vta4qR4PjVUL3SwwAKXp4SkgOpE8GGwgtVb5fcoQF7zReHNaEOkBYSpcsuJMKoIkQ6gzijmEAWqcezu8oqMoTNOE5ZPYBRRH+kV9YMRGj7s/VoAkzFGLjiR1t2ZgkWhBjZAMqBBAK78deIQvmu4ePatH4HVWz10SDi6fRlPns8SZVDlERJhu/RN1oh5O9C0Mg1QD87PGfA+bKdepGPAGOS64QfNC0vSzQZg+tcZUUowE4v0KXoLRz4saLYLDKUpAAREdotGYa1yrzDToPXqO/Rd8k3GgQZNRhuhTMcXtgL9hG+mtIalk0pjlrGCKrSf1k388qG/fi4m3hpgAoMpkMWqQrvRNLv8S+4qUlTBDTwJt/IHPDaYaPwsCA6WAG7IgZLo8LTma8/oi1SInHYsiwluvxlmIlCaddEu8PV5+seRUAssFYs12/XRtvdQXsepRFpFv51But/+mc4C4PMO2n2NasXkk6qzecwE5QhkcnTTTaf6AhpM3pJ3Mka7cLJOfadXFw2dyUGz/rZ0DNQjWLb37o3uXYlnppgRwqrFLITTheV2l+dyx9Yf77514HzN4vdlQIMwK8P2VnLqw/DJoDv1tiR45GGR8rBD63Au6O7g2fbZG+O4DiZYBXAijrOfOn80T4masOtmDScU5MDgA4j/A5vVCJnN/aaIbewNak4dNDOf7h90NMsFmmUoBW95 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)(346002)(366004)(136003)(39860400002)(396003)(376002)(4326008)(83380400001)(7416002)(86362001)(110136005)(66556008)(66946007)(316002)(54906003)(16576012)(26005)(478600001)(66476007)(186003)(8936002)(5660300002)(8676002)(44832011)(53546011)(6666004)(6486002)(956004)(2906002)(55236004)(2616005)(52116002)(31686004)(31696002)(38100700002)(38350700002)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-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mh6TG1PR2NJS2s1TkZSRDhwN2EzbDhXUHVtM3VLQVFoelVE?= =?utf-8?B?VXE3SExaQ1dZY1RmVU5tdz09?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cf3527c-e438-4073-952d-08d958c4953d X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2021 10:25:59.4731 (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: hQUVHpIrBQTz8tI7fBSarmkFpohety6TG0NqDGjrP34HsDHhnZraxSMS4vI0xruJ0xbbpOx6yO7hVM6o+1uuRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8744 Subject: Re: [dpdk-dev] [PATCH v2] doc: announce change in crypto raw data vector 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: , Reply-To: hemant.agrawal@nxp.com Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Konstantin On 8/6/2021 3:34 PM, Ananyev, Konstantin wrote: > Hi Hemant, > >>> The current crypto raw data vectors need to be extended to support >>> out of place processing. It is proposed to add additional desl_sgl >>> to provide details for destination sgl. >>> The same is also extended to support rte_security usecases, where >>> we need total data length 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. >>> >>> Signed-off-by: Gagandeep Singh >>> Signed-off-by: Hemant Agrawal >>> --- >>> doc/guides/rel_notes/deprecation.rst | 12 ++++++++++++ >>> 1 file changed, 12 insertions(+) >>> >>> diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst >>> index f4a4d00db2..c19a306c93 100644 >>> --- a/doc/guides/rel_notes/deprecation.rst >>> +++ b/doc/guides/rel_notes/deprecation.rst >>> @@ -193,3 +193,15 @@ Deprecation Notices >>> reserved bytes to 2 (from 3), and use 1 byte to indicate warnings and other >>> information from the crypto/security operation. This field will be used to >>> communicate events such as soft expiry with IPsec in lookaside mode. >>> + >>> +* 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 > Seems ok to me, just one question: > would layout (number of elems in SG, length of each elem) > for sgl and dest_sgl always be identical? No, there shall not be any such restriction. Both source and destination can be different buffer  with their own number of elem (if any) and length of each elem. >>> + >>> +* cryptodev: The structure ``rte_crypto_vec`` would be 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. This change is targeted for >>> + DPDK 21.11 >>> + > Acked-by: Konstantin Ananyev >