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 BEE59A0C56; Wed, 8 Sep 2021 14:02:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 48B7B411F4; Wed, 8 Sep 2021 14:01:47 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70042.outbound.protection.outlook.com [40.107.7.42]) by mails.dpdk.org (Postfix) with ESMTP id C6F804118B for ; Wed, 8 Sep 2021 14:01:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IJii2aRJ9bw2VGVCBDTcyyHQvlqsSfKgbCSeq9EXt+pQ5ldPO7u4cznJVkXld17IqYDeEKBeSmLnzqj+kRddVhx3Pod8YNSJHq/xKvoe55dwkGMKcO+2JY7qz47sjIJcUIhxgIVTYOshFoN3V3dPcbewZqO41OzgSf3OtWdbVybZ2wbmPAccj6A05im2I3xR1XX3jMdVaGHnN1AR59hnazP3B8CCKISKDrYVUywwbd+N8iGxi9tF0PMm1qqEsOog0neexr/IHnOzORHYdf4LZzlwXHqkL/bJg8beO8eRvcnep04YJTh/8hN5HxdoocsUiN7uS5Vp+H0h8Qne6Yuakg== 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=rbxb10810qsG1i1jLWpshTYn+bUduU96EX+94uXlgkc=; b=VIj4HUoG2ujEieh0CD6wehJK2PqlH7+4ztqrLrLWbqVo4Pmw0KaRsbJb1SupSQeku4OMbvlLRa02H4Wv9uOSHUxBMWX5o7BIID+VFYpPCXAF+wJMlXC+zPg7PEazsLMMQB3cS0NRcU2T0BRMg2yKDPallIXHDbp3pGSNqJt5Y9RHI6Q5iNhpZKcgJdd43pt27Lyt7LriCPObxzDwUH11H+U/8YksHhnGgJEWtyM6PFA2ILkXn7xIoj8QQpNTgwOixz/jZjPLu3MvTYhliH9qBudua2RB1QJhhjlzcZT6huV6nNY0it4Vn//xs5cNW8emxqRPKSj4b/JAthICdNJVWw== 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=rbxb10810qsG1i1jLWpshTYn+bUduU96EX+94uXlgkc=; b=RkgE49yE0X5BZeqYWdyfxU9mvAaXtwQzX7kSmdAfzy54kpY/qMQsxOvsMfpBGciTzHEM3Jctb/sAFr+SF4Xv0p8pfkYC1Tb1HkMk/ZIGd/V2UVdVAjyQc1jyNcDAiK8guyhd7cpeQXryOFps8ntLsfrysI7qfg/kcW3INAuEHvI= Authentication-Results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB6960.eurprd04.prod.outlook.com (2603:10a6:803:12d::10) by VI1PR04MB6958.eurprd04.prod.outlook.com (2603:10a6:803:137::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.22; Wed, 8 Sep 2021 12:01:44 +0000 Received: from VI1PR04MB6960.eurprd04.prod.outlook.com ([fe80::d496:fcce:f667:7aa7]) by VI1PR04MB6960.eurprd04.prod.outlook.com ([fe80::d496:fcce:f667:7aa7%8]) with mapi id 15.20.4500.015; Wed, 8 Sep 2021 12:01:44 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: thomas@monjalon.net, Gagandeep Singh Date: Wed, 8 Sep 2021 17:31:14 +0530 Message-Id: <20210908120115.3548009-4-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210908120115.3548009-1-g.singh@nxp.com> References: <20210907085605.3010882-2-g.singh@nxp.com> <20210908120115.3548009-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0108.apcprd06.prod.outlook.com (2603:1096:3:14::34) To VI1PR04MB6960.eurprd04.prod.outlook.com (2603:10a6:803:12d::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lsv03457.swis.in-blr01.nxp.com (14.142.151.118) by SG2PR06CA0108.apcprd06.prod.outlook.com (2603:1096:3:14::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Wed, 8 Sep 2021 12:01:42 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: db542d5b-cc53-4fc4-e5e1-08d972c06d39 X-MS-TrafficTypeDiagnostic: VI1PR04MB6958: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1122; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cCkWHucH9/+5BppK1BYKx4EP3hEKXhNs7a5l0Np9Q7LQJhYyGBz7ALwb/Gusjf7MIAM19vt7uKWQKOBPYDoQn0lc6yxKLsy2HXf31ZhuLwGc4rUNFiN17OCeNXKfonUQuttZwHJjsHMOT0UKZbJaD0JM5+QIehYUrdcrp7U/ohyh11xuxH97OSPFrRiTBzwLR+NsgAQxKJfxWh51j+46bmfD4Cj6kgpNm7xEHAgkUUV5UKD67h43daFlgfY4aCFtCLrUoNU+R7r71fBZ5CaIQD2Gbya6ZODmdJhYRIoA6T0gPiU64Rfo+GOA3iMoKXCcxBxZlRckoxpcx3b4DAdAjKbyPgahs0NVxwycEtJewcF8WCn3yvVuV5pVhjOEFIHy2vyT1A2sEDGX1ZvRi91Vn/n1PyBhzTqoFsM+4s6/+GwXjOI94Wga2DgimHdEWGnNGrrmFKcv0k7b3SViJ/XDkblJuVp/CvQGhfn8dFEKKYZlAnhUnaxVRKpgXxKGDBZBgNYIF6QF37Y3U8QxkD4dTKaFWYNf6DmePNmTi81BAkBhPo2nQh40WvVsBNaZla3DDFtppkl34N1koHfR5SGS3TKMYjlxqmYf3c53KMvsShTzbBi7ONAcSpk89EZHjEIO/E10zV6NNZpBA11mDqIqU//xsIUeuW3sLd7pxJepKLgZ0hAAqdnJV6kFQf8+n1Egyrao7BNlC6/cK1yCjgmwXtTzm4/10RZ/4D7OXcJ49Y4= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB6960.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(346002)(366004)(136003)(39860400002)(6486002)(55236004)(86362001)(1006002)(6666004)(38100700002)(38350700002)(26005)(478600001)(66476007)(2906002)(8936002)(956004)(66946007)(8676002)(316002)(83380400001)(1076003)(66556008)(5660300002)(4326008)(2616005)(52116002)(7696005)(186003)(36756003)(110426009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?mlcNBa1DVOWWR3ods/Uhzv4qsxn7PV116Jm2fe43nWEG7miKkQv+ymm2og46?= =?us-ascii?Q?BWVgYDyURP3sELEQ4l+nh7Sv1LaqQPxR0258LJm1q14YS2oSm0R1JFvbU3ep?= =?us-ascii?Q?aeBiaQQwOduGxhVGRWllMG4Kpcvg0w1kNlQG8y6SBvLHCko0ZRaYMcPSwZbP?= =?us-ascii?Q?ePoh612JgLi2Mtw15wP/MoIIukTGwomCqiHkAbJl9DUd2CVIQ5MDdG79ijS6?= =?us-ascii?Q?MJfpRnD2jSsYHoJjvTMOhaVz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?Q?Pzh8IKOe/ebxPClJyRTedoPfXFXuiyevGlB5HLoex6RWHnON0QSO0UYLxVgs?= =?us-ascii?Q?ZeUeixOlan1P+tAbFIVSgBtPhcLHCWgNzb74quNxo+EM8rNe+MXVtDxNS/mF?= =?us-ascii?Q?/JmJQ9tc8Ci/9ANqyuAhXiqDHFxUO0gVWZFPPF5APGyHJVkVn3xlMHww1+Lh?= =?us-ascii?Q?dzBZKZvzkK7CjvAG7FI5dY65?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: db542d5b-cc53-4fc4-e5e1-08d972c06d39 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB6960.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2021 12:01:44.5615 (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: Lj9Mov+4h1DgZYIbUHBtoFEo58eNw+FYglGW+zAqirm9+KmNGQVSXGJwe2rVbVPv X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6958 Subject: [dpdk-dev] [PATCH v3 3/4] crypto/dpaa2_sec: add PDCP short MAC-I support 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 add PDCP short mac support in dpaa2_sec driver. Signed-off-by: Gagandeep Singh --- doc/guides/rel_notes/release_21_11.rst | 4 ++++ drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 4 ++++ drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 9 +++++++++ 3 files changed, 17 insertions(+) diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst index 50e4fb1205..b7e5128be5 100644 --- a/doc/guides/rel_notes/release_21_11.rst +++ b/doc/guides/rel_notes/release_21_11.rst @@ -77,6 +77,10 @@ New Features * Added DES-CBC, AES-XCBC-MAC, AES-CMAC and non-HMAC algo support. +* **Updated NXP dpaa2_sec crypto PMD.** + + * Added PDCP short MAC-I support. + Removed Items ------------- diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index b8d57c2b22..dfa72f3f93 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -3309,6 +3309,10 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev, pdcp_xform->hfn_threshold, &cipherdata, &authdata, 0); + + } else if (pdcp_xform->domain == RTE_SECURITY_PDCP_MODE_SHORT_MAC) { + bufsize = cnstr_shdsc_pdcp_short_mac(priv->flc_desc[0].desc, + 1, swap, &authdata); } else { if (session->dir == DIR_ENC) { if (pdcp_xform->sdap_enabled) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h index 7dbc69f6cb..8dee0a4bda 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h @@ -941,6 +941,15 @@ static const struct rte_security_capability dpaa2_sec_security_cap[] = { }, .crypto_capabilities = dpaa2_pdcp_capabilities }, + { /* PDCP Lookaside Protocol offload Short MAC */ + .action = RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL, + .protocol = RTE_SECURITY_PROTOCOL_PDCP, + .pdcp = { + .domain = RTE_SECURITY_PDCP_MODE_SHORT_MAC, + .capa_flags = 0 + }, + .crypto_capabilities = dpaa2_pdcp_capabilities + }, { .action = RTE_SECURITY_ACTION_TYPE_NONE } -- 2.25.1