From patchwork Tue Sep 7 07:59:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 507502 Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp4011929jai; Tue, 7 Sep 2021 01:04:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwghg710YlmcC2c301x0exuFDLVaeRYbZCFRt+8Ni+cQ5iuDou6qJa+UdXQW6df+VCIBP93 X-Received: by 2002:a17:906:bc89:: with SMTP id lv9mr17224492ejb.110.1631001842062; Tue, 07 Sep 2021 01:04:02 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id v28si11548130ejk.276.2021.09.07.01.04.01; Tue, 07 Sep 2021 01:04:02 -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=QGteYPG0; 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 242EB41123; Tue, 7 Sep 2021 10:03:50 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140070.outbound.protection.outlook.com [40.107.14.70]) by mails.dpdk.org (Postfix) with ESMTP id 8103241100 for ; Tue, 7 Sep 2021 10:03:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eqUCDUZzBKm3SJZYnyqZGKFOK9iCauV723RTLZ/cLkMyVbEdz3/+KNAYDWCD8YnpXb2RIqzcJQQtbpLePuLfZGyjvxirQjXHTzxTI87P7lPrkszIo27XzaS9wHqMrZ2i0gbLJifi/fzv665XX1JqGKNwhMfm+Z/CXk3oJiPIrE1+Ktxvde8xAej7kyT8qWPj7kDnHq7/zKQRB5xlmr/wfS2IB8fcDy0IXzSDXhS58lD/kI5P0spvRs4Ousq0BrHpxFYWwHsOZQ72sGAJckX7N/Jdr2GoAxMxuXqrI+rl+ELDFNAB61PnwK8xM3Na6PhbQNxd3lpDzdvS+PNseS5+ow== 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=EJrsrJI7X3tqmbSdz1cbM3dW9yVV8uKaeS7TAjhWZWU=; b=VGL9/zQCWLlC5/9yWMuLZ1BGcNnf6A9koL/YhAMe+ram8m3DJCdk8Vxoe6QsabKDsneLZnPTxbcWX1jbs0dLEj7Mh22rXpQpmjCDDcoez8rQ0fW0GDUdJp4JvohF/OTqP697rJrSZrP/dcx6e2j6B7HXTGn7OWovc2yZ3qIbjf72TIOiZUVj2sJvmu9kOTo2/75x2YT2RPjzVhLHDodeeqMCMzb86ueyWXGmnUHLxyJ1gYYUv/BcyL+juD9zuXXnccJqkTTcVcQEfB0uOJheSN3nzQsHUo23Li3Jd8OJfC38hHjr4ZlV2potvIph8nnowIuRrr/msC8Hrdo0cNi9dQ== 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=EJrsrJI7X3tqmbSdz1cbM3dW9yVV8uKaeS7TAjhWZWU=; b=QGteYPG0xEpV9lrrIRYRd0HUgCP08xoEkuW9ZJ5mIhNc4DeLkHkFC2Uxr5qa22fLj2AK1qzuPMb5hO+vMNZvcQ7EtojboJ3OEvBI0dknZvCNgc8kpVYQjS/G+yP1oFophah1aNuGvLRtbnt5L8oJI0VR4kvoHsxn5WByw0x+Cjs= 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 DU2PR04MB8551.eurprd04.prod.outlook.com (2603:10a6:10:2d6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.17; Tue, 7 Sep 2021 08:03:47 +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:47 +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:42 +0530 Message-Id: <20210907075957.28848-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210825071510.7913-1-hemant.agrawal@nxp.com> References: <20210825071510.7913-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:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 30a70538-3d19-4364-19aa-08d971d60541 X-MS-TrafficTypeDiagnostic: DU2PR04MB8551: 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: 9Qfyb9D3ZG1Y/ijHaHM/No6gJpMwcmUqEC3TQFu1Bc/CaL7+ETLtz/xjHgTLwMjJDklcEdI8pw21VWIVoK8jiElbXSbUeHBAUisy5j7iuaMXTPDhYwE8aGVBeZFJMs+pUXYAPPSwjMDTBnt7dRitaLulOO4YOQoQihylBfD6vtgu77SLyZYoKNMcw2VDePWCxza4ZXqEGq34m1g114XKgRl7hDoHD4XKVZDyCVB7voOQS9te69blhqjqJjv+zuHRDQyG1CSkVIDevq7kCjlrkip5rQ00wC8A5bbPEL4G1hNlx8IZFccEO7V14lmuCWrisP2EAaam+6AjUgr8WEz8s0n7aDI77co+O+5CV+Z5b2xTAd53v7GFB+xpxaSBoY7x9fLf9EPDFV03iaFm21pqJG5Yz3QMenS6qlPT8fjtMOIJd+8owCd5wb1NsksLPd+6nofSfJaKEN4/SxHLaL2zt61CPq+kcvS6qy8y41ELlk6PHDiKayVy3E04xLwcWkh4TN4C9gEaLxJoOJwywDfZbrnved0+lq+5RWIlHeOk3XO+NwfMdeM2P9lx3pAjMq8pE5HxJP9KWFiW4psfntojd4853kWlO2dk1U1MOfqMWcO91S37xvYriLmtCJ8UGFJkuwOs96qSQIDjlv4XfnHDkLHLN4e5v+5B5fTkFYag6v7/Lj9aLKX9s1oslNFkDX03IPNpE2k7NSWOC81YB+NBvA== 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)(39860400002)(376002)(366004)(136003)(396003)(36756003)(38350700002)(6666004)(52116002)(8676002)(38100700002)(6486002)(956004)(2616005)(6506007)(5660300002)(66946007)(66476007)(83380400001)(2906002)(6512007)(316002)(26005)(186003)(86362001)(66556008)(4326008)(478600001)(1076003)(44832011)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?RPRKtqKlJ8Z+7c4zj+dHHwp1R?= =?utf-8?q?bX2qEjW+ohCNcci4Qw4jDlVAJVa6MBGleMrn8aP1E7x/9D++h9kNz3i+?= =?utf-8?q?4sciZZKCzYx04VlEg11+pVqlaMvei1vDQHjHfQieJ3UEYQ0va8dx6wnX?= =?utf-8?q?JP0E26rUe/uLy0I2V+xCo3x8mdF3mtF7QO8v3HfhE2ffbFvl/xsIO9Rn?= =?utf-8?q?zoy87zkFSiZXkPbmTTLUfoUCthu92PECAihYwxtg91ueG0t7xWXzzNS0?= =?utf-8?q?xx+aE0ad5bF4qUAbUmfzPre6XgZVTsPOS+UzQOJug5RiVnpUqvryzdVh?= =?utf-8?q?pnq7Rz8B1Oag29asOVeAkKwJIj33jH2m/JHXwS2SP6d2YIH4RvMAGj4n?= =?utf-8?q?dpkvmWtFFsC45Xa402AnANxzih+yvUcqwK0kBBvf5Y0TYLsBl3bvqImY?= =?utf-8?q?0FEUG9QDnWDyQL4ZnTTKBXyn9aegPvCP5n8Fs3p68a2Wex27OHbcCtUx?= =?utf-8?q?gCMAcBksRNL+9jIGdkxaZXBjK2JbrC5CVYVlj9U+TU0SMQJHk185ZtPo?= =?utf-8?q?MeH/RCEwfHFjP0TjTeXDj+zh30RaROTlDWvB/xvQYEN3zT8OXO5Ote3b?= =?utf-8?q?oIf7ImtofEv+48OogZ8qKi61Lph64DqXIDvt/VSdUHr13ZUc4Btnb/lM?= =?utf-8?q?Libnzb6tlTP3Lo0P7JdXsWIChjexwqi/UncoH2G45VdB5gt1eIfMi64R?= =?utf-8?q?+rkPDmlEm7C3XQd/h32fwfj5cbRMc+i6Mvo57T0fDX9Kg/WzvcaSYjh7?= =?utf-8?q?Glfi3Pg8Ttcj2dEtVWeK+R4DsDFJ4VGw+w9794Ngm8tsgJkCeyjg5jwN?= =?utf-8?q?08SjacHrdz7hixaGEkU5/TUS1rskzAJar6q6J8MH4leymFPbA3T50tDh?= =?utf-8?q?QBNQtHRY4u8U05EDh/iasvMFVpO6vn2X3JVcc+KzQl0DGC2gJ3Ruej7g?= =?utf-8?q?4Ymh4ewq0sqE6DbDKXVHI67NXGEW64473JSTXHUSpF28JUo+SLpsyHDI?= =?utf-8?q?USDv0+RVYPz4oQZLbGsWA3lcSQn+AKaj/d3B4tO8kNKzjLjbvW7kFsO/?= =?utf-8?q?X10aUpBllFmL9akWBweB2kT8tL4Recu/KOU7cnt1BRMmEKSL7BUH7cBO?= =?utf-8?q?v83LvrQfbtIHj5ck/6lNp1kLX+nK4vrQsRLiHC2tgRdiDR3sXDyzYTKe?= =?utf-8?q?9kKGlcOP55gNh6rEr1gIjUwbeYKkwRVQzkF+K6woR4vkhvWHIuxd8UwK?= =?utf-8?q?+b0mbLq92EznxJcwgDVttH83Y4gXUYDtwpCaJrPdHsa27piB2yo0X8PR?= =?utf-8?q?dkBab8VjUpZLXXiMMoe9MgOnaCdshk0M454LV6SlXd8V7oTCQoqnPRO0?= =?utf-8?q?NPna2EXJK4iSkuCIvCGbvAoYa3rWiGG?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 30a70538-3d19-4364-19aa-08d971d60541 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:47.7287 (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: r7T+KZawLddS1lajkEwWcQvL0mOKbtQgWtHcVEENULdbLb7qGliXk/bJIZl7s8asV4JT+lODxhHTSVZ4/10xRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8551 Subject: [dpdk-dev] [PATCH v2 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. v2: fix aesni compilation and add release notes. 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 +++- doc/guides/rel_notes/release_21_11.rst | 8 + drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 12 +- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 6 +- 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 +- 15 files changed, 2407 insertions(+), 104 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 Acked-by: Konstantin Ananyev Acked-by: Konstantin Ananyev