From patchwork Tue Sep 7 07:59:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 507505 Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp4012159jai; Tue, 7 Sep 2021 01:04:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzo1+iJfJUAVaXlnz+e5vA7QZcW9TW9bo2aAQQL4Y7IJRjR5WO5Fy/YZ/yO7IFKqEJdN/s8 X-Received: by 2002:a17:906:3ed2:: with SMTP id d18mr18307554ejj.311.1631001865827; Tue, 07 Sep 2021 01:04:25 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id y11si745271edj.69.2021.09.07.01.04.25; Tue, 07 Sep 2021 01:04:25 -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=QEOT+kw6; 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 DB72B4113B; Tue, 7 Sep 2021 10:03:58 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2044.outbound.protection.outlook.com [40.107.20.44]) by mails.dpdk.org (Postfix) with ESMTP id EFB414111D for ; Tue, 7 Sep 2021 10:03:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NcJidksBBT2nto9CuP10gOWt4F7rPikrJUFcN7bW2wBzvnYRwfZsRADOkcgiZHbHN47Fwt6D9ee0pmRUN/Hpd72Djj8jyYyiMSmPfgbbC6d7ylZbQyhDnCLieVuiZ6HIo/ERLwXHJ221ij9/B5obvUW/oe09auygVaMJT6hzs1aRr7RBwQLFYM2pOb2lrKHr3rFzqoivRZ4V6wnxHwbPIM+OZcVWuBaTjYsctNRD99yPyATU5ZadekyvyG9kGaZwC1bPQYE/UHOLceD6O6/lHsSNBzvPRgdT/3htHU0mLT8dEEY2Xi+7KY/KK41RYrjg1up5IB6e7Pe7/tJvFbZMBA== 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; bh=4ZLIZn5l8Y/k2Axp7hKaOqh9ErkFBOHeGdv7HO6mMRs=; b=BDRkp8JGtQdLF2HJXnSWjh+SQ5rt21JDviJUqPlSSapEPl4ZzFp6fSlTX5tCf2pe44mTrDUPhaZNbzm5/gzEpmT+ONP5W/b9mCae6/wMCzlzRMv+zwOLUYVwPmhMk0LG/MrF2a6BignoM+qGZ/w+jHAH8uABMGKAAseLeyU5N6U9wyeS1RJ0eVx8uGIBSrMK+9L4wkcy3bhdlMaAomcTLgD0TejGQCixabapFniwPuuCUYghMBadq2a55TvTujCxMvY+E8/E4UKmL9vXivKnOHSskMsMUhf//mqFortSftKXu2u6eX8hYbke7OVV/uvp9z4B39B7Pcr6qe/Yd+053w== 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=4ZLIZn5l8Y/k2Axp7hKaOqh9ErkFBOHeGdv7HO6mMRs=; b=QEOT+kw6yNOPQWmELk9nStc+YmWgcku/bFLFFUIWKRrhAV6SXpQhQ7DK5PgcDj3CXYSVHmtUg1N3ZVFTvYhCxODNnPzMeNw1NcRGGqCVHfR7s2oTKvyi5JKSRSiF9uyMl76VZftC1DGrrayHCYr8QQKlIEJXSgg4QXTKkaWqdBI= 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 DU2PR04MB8709.eurprd04.prod.outlook.com (2603:10a6:10:2dc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Tue, 7 Sep 2021 08:03:54 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80%4]) with mapi id 15.20.4478.025; Tue, 7 Sep 2021 08:03:54 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: konstantin.ananyev@intel.com, roy.fan.zhang@intel.com Date: Tue, 7 Sep 2021 13:29:45 +0530 Message-Id: <20210907075957.28848-4-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210907075957.28848-1-hemant.agrawal@nxp.com> References: <20210825071510.7913-1-hemant.agrawal@nxp.com> <20210907075957.28848-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR02CA0068.apcprd02.prod.outlook.com (2603:1096:4:54::32) 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 SG2PR02CA0068.apcprd02.prod.outlook.com (2603:1096:4:54::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19 via Frontend Transport; Tue, 7 Sep 2021 08:03:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ccb42d44-3dde-4b8e-3337-08d971d60922 X-MS-TrafficTypeDiagnostic: DU2PR04MB8709: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IcbepOQBi9bFwKF1X4W2zDHYcWtvBSWo5DDt6WVhrhfTj5iZpjvniwvBm+QssyK1jnwTDAPEY6QUy/IhEyCeh/YH2il6T9mSchRA7Jp+5lXippndtkWzfXC3xHx/1HvRdDEzV4yjQ+Ozj3K6NM9JfqEAnpbSV/TP/jDuumDv90YnCBLZpheIco/pJl0g/iSBlYaBmC5v+qR12yQGhMPBp9z9IuJX73RZUZXryUfJXdmMwg8QEP+ihP7tuAAldPKpr90q1alXMiHeQE4GpC9bcYfeog/+Vqps1Xsj5U4xt8ePRFXQkQwcpQ0A6qRGnwXMmj4Fs6Ihsb1KDZVxeSnetZJdK2VZyIXhEUJcK6tjA1EfqX0/SHarSBgdV8GL1OwVx6tpxmXBMIgf8gHa6hXpIxCOLYLmTGZtQI/g8nGo73ocid/rUrVY/qISA3kJXv+ErdMEBzhkq0+BxTUuZnt5j2q6ogIPr2seqVEokI3WCE+4L+12d4dDnKXYvlY+2Hvf/GxKiV4Rc3w74NurJCeKgDJY4Xd4rP19sMosGvN009zfCwWdD557UkHFMkcbFscEwm+hBNaD+Ke6GmANkXQapJ76hGz9Cef5vaGllKK4EuPPCuAAIAgpeo7HQvE4qZ0eQ0kASXyzyieYnS7Dsn7yqkbTacZOiEiwLkhb5syWtaB6Q2wGcZBhtV5PkBporTCShPxI02mBqCvNMEAX8EcNiw== 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)(136003)(39860400002)(366004)(396003)(346002)(376002)(2906002)(956004)(2616005)(86362001)(83380400001)(478600001)(316002)(6512007)(4326008)(52116002)(1076003)(5660300002)(38100700002)(6666004)(38350700002)(36756003)(4744005)(186003)(26005)(44832011)(66946007)(6486002)(6506007)(66476007)(66556008)(8936002)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Tnf/cVpIJw4hxvnA0ntWhpqYunoIS7um+tI/Xec76aqn03eNirpfsMeqVToZjyDq+2XSQmrzufnMp5EHj9Qt5RtbRP8rO9futovaRUDIl2Nm5/aVCm+/WLJAkv1oA1UCxeGyqsn2o500ecD83kDK1WK+dkAuE8Qq7Kds2/TCTVQCvpaii4VRL/11wItsaoKY/32u2/LqDfwSZhC+GoiswRDpJmpBsmPg2oCXaatFfMwogNeFMROckrtU5VKQYOaPytz+5je+cz+QnjXfe/eDOxaXQW7qW6sFmSKr5OL3akgo+1JLGOmk5HSu4jGvTLcuPtXyEtC4vWpvjvlel+zDkQKtx+LhyDxcPnmIkd4Wdy/WT+OD9JKCgrIdr1EhPoe4lLtjHzE80hL0BJ36gNQDy1bF16qNmiek2ppy3iArnPRV6SCrUCX1VHL4FAspBlSTFB7HhvAovf5yhW6LThWIZ7PqZdZtpGmlHYuSy+8hdh0wjWCZLqvsKWWmq3E6JIrMRT9+SxhTe+5qzSxqP+m8FWyn6LcPn5VjxIKOHMyijEy95pNOep6ppZ3xdhGAq37+32QiL+v1zpWRNK62Aivvd0Rr5zXRyNcq2zpF98e+FGQDdXCdXn6ZjTUhfNKO88khL5nEhj/UxFNseYaOsIXvk3U6v6dWjX5XK7vDhdg5EVKwbfxsaqwuMFZQQPhYqnrKODSMw6C3IZlPTlm2ktfM7TyrLpOdL1Un+wkznSfO2K2X7x/KQkjF9dn7RncRLtPB2X1pIlZeYW47OKxqd459YG9UpTvlFBopjgNi0V+Vow/x/lMAP6gM6eBlpODs8Zb9sR1ayh/s/undsehdp7DVuSNQdR1R/ZDE6knr3jTX/YwpHy+9BjyXuSO7oHJ6FsBFCYAcpycem7vmPUOxCGqTY/PSC+YUdNj253oKphMOlUFQdYg0KyEtHnqKN1IaS0CihixMG9PErAfFY5kuM8whIY9DlIV85X3CIqVwmTdqTIbEzF8UchZCIUfOA6iK5VeT5NFOBOdhjsq2LOx80wYZKhQyBLWZBlV4wmgE6Kjn390sXIjxSYvFLCTWHFV4tl4EqZg4ri5DvneAGbBsgvW6st+zdtwE0zEHFaftqyfvYxfAMAI3tf/iiWcPEJGeDn/h+rbYswoV/t8Vu4BmYN51Savu8yq0hAGu7wN1B/fdDrDQ7U3WGt/7xoPZCm06xCe/RD3gC0c/VD+YZCEybLiT5DJfc6rbHWv5/2IlOL637AN0eDI8naMlChesBo8tark5ZTUDGF6kVYIkv16JFhOSeca7qlCtqAecu1mDwfgkuejWSRdTtfUORqfzlkDzLt32 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ccb42d44-3dde-4b8e-3337-08d971d60922 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2021 08:03:54.3734 (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: pShCn+mvzgaq4o4vMUGCnQg7XM+BkopNAWM5H3dy4brOt1wrQPpAMDR6riEbX7ODuIJdUD8zwM2Pbt3cWwEK3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8709 Subject: [dpdk-dev] [PATCH v2 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 --- lib/cryptodev/rte_crypto_sym.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 Acked-by: Konstantin Ananyev diff --git a/lib/cryptodev/rte_crypto_sym.h b/lib/cryptodev/rte_crypto_sym.h index e5cef1fb72..978708845f 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 */