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 CF100A0547; Wed, 8 Sep 2021 14:52:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BAEC24122F; Wed, 8 Sep 2021 14:52:00 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80041.outbound.protection.outlook.com [40.107.8.41]) by mails.dpdk.org (Postfix) with ESMTP id 0B3AC41228 for ; Wed, 8 Sep 2021 14:51:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YrDLXyfB6TDMBM22eMgH6DWBH7tvESp0GCzMweJiouIio0VE4ivXxkMNcAEZBbsvkovk8StGVg8H9MNOfDZ7/arR53U5QW6JYlIkdyFzMmB11iWqhTyCAUD0J5pWDVhfSsWibt/XUXrCJCz9clP4OXj+aP6G/i4IOHZ6VBIznuHBupERTGqvnsN2K69nHjogUmCa8oYiWB/DSBWn098YGYp897vPKgcnr2sif82w0sZsODikhAZ9me47PTwaGpUANn0ssOg/yvZK3j+KqAgKKj6epmhS2tLTkt8V4PZI0xmOxrOMzotMcJYhdmmqTK9+mtwqgHUpsgXewnUpawWV+Q== 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=qrVIQAvXwa2dpLj2R6b9fF9mMYv7T75UqPV4gem1zz8=; b=Zubr4qCDbhxlEiGi63yO/CntuXQ7Zq5ST/lPpn8oVbPrlv11/w9J4ke3GqIwXWRrEfbUqCmMehfrhdlMVTD1Xspfb50j6p0Fe7XKTPedYdDj4Pa++2xU6LHrB/oUIT3PdQduZu8KvOMw2gnAEoNfITGw/dGbl06VqhuvfExpMEhPuKDAxgTxer3AEcGeF9rnTRbv4KQlPg7Ih9y4dDDrBX8OqP/BZmowip7m2QtYRlhyTh4+eJQ9KLPXuHMhLg73s97G1c+9kJfFGCRFiNHgW1h9fX6khNDvJnU+JCHJIAZ1jugiW46TbfvyvoAkNrGNQ0ZIXqr69VOsI0SUlF4aQg== 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=qrVIQAvXwa2dpLj2R6b9fF9mMYv7T75UqPV4gem1zz8=; b=baQaRziEDXFNzY+MWTYepG9dPvfegG+Tra3UDto41mVsb1erWtNUZfI4YYfglYMCipRielbyh+jUh1Gg0X1ZDqBLHwn5bTVIAuPTlix0fa9h2MK7aUSYUwAQ68qATpkFsEdRx9Zhv8iKw2Zi5wONGX3mN/2/F5gqtRjQqIAVjq0= 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 VI1PR04MB3024.eurprd04.prod.outlook.com (2603:10a6:802:d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.24; Wed, 8 Sep 2021 12:51:57 +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:51:57 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: thomas@monjalon.net, Gagandeep Singh Date: Wed, 8 Sep 2021 18:21:27 +0530 Message-Id: <20210908125127.3566886-6-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210908125127.3566886-1-g.singh@nxp.com> References: <20210908120115.3548009-2-g.singh@nxp.com> <20210908125127.3566886-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0144.apcprd03.prod.outlook.com (2603:1096:4:c8::17) 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 SG2PR03CA0144.apcprd03.prod.outlook.com (2603:1096:4:c8::17) 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:51:55 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bafdeed0-4d2b-4eea-9b90-08d972c7712f X-MS-TrafficTypeDiagnostic: VI1PR04MB3024: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1417; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: amQ9aQXGM1bo6zG7xKfq26Cp5aLPt/6LcW34XM2PYMQm8Cpqic9RC00DgJOk4DUyqZ/VYdoCHoIoUKwWbvRzpWF35ITTZUUVog67/ixU+91C0ZWX/Nzixq1oSGbSvafB9pt3ADKf3SlrbBlg3xxieXtKNyKz+DJUNLfINYKf8155/k4ouPFzyYcqBAR84E/pHeCjh/UPqnwWSbcAYOv2GM5gVUZuo4DzuBhiTLI8ctvK7z8Kklid8E4Zbz6VOd4yLyyP92Hdzjt2+cQic/vFDwjBM94AZhDRDr4j2+WLqR7N10dioAeOYnHK59u6V0xpgHGc/0xbTkJR3OzNRTCC4xTgQhFw0PKGnhALcZpWMVIBePj245KsGjH1ipFNUc5kjWdoSXyjXJoohyjkczIINg19+kTUHAoHnp+FtwghVwFc34Ab0T3NUBsF82/WUJvT8PrSmuTieBLGaVkqkeiRMCpFuWgBFQViuUA5R0FWaO3Pr1yETsOOYIObqtdVFIS9WEwMhB5Yd5os/Nca176KUG/oHS/yyhQkpuVzgm04QGk88T75mlzJozzODvNwaoUSN3w1Z0W1jpHbak7YA2XiJRMBNRqO1fE9keEH/pEc4+gsLFnX32m40xFkQu3Y/Nw+6m7YtuhOMDYBY0Yxo5jzkdwvfcvAb3Yo374mfcHxQEaBnz8kE1TQ1tcJQWzulsQT+Dujgu4nxEMVtI5CFSw6jgd4O/S7/Kq0mrQiJoOSQkM= 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)(39860400002)(376002)(396003)(346002)(366004)(136003)(38350700002)(5660300002)(8676002)(38100700002)(55236004)(66556008)(66946007)(186003)(478600001)(52116002)(7696005)(1076003)(26005)(316002)(66476007)(8936002)(1006002)(6666004)(36756003)(86362001)(2906002)(4326008)(6486002)(956004)(83380400001)(2616005)(110426009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?oYubvvvOrnEF1wErogaBqEMu/ZqlCKGKmhq4T2RMWRS3Z2hVYE/6DP3tMAXt?= =?us-ascii?Q?1/yZIGrMh0749YgAG7YLcfFGAuClYMvS5tWcq9ZDzAdYsku/6quXOCEZVUQr?= =?us-ascii?Q?HkadWuDQKOZ2W9elTr15T7TSnODmRGri2lgjqC5Su2ixckBlP3o9YjAByjfM?= =?us-ascii?Q?7KHy+8A6k5XidLMosNJZx3mCK2iLVPAA9Gy9LJrUiuBqle3RMVmhnzWcGGiF?= =?us-ascii?Q?IZOWIaZ0M7Tl3hQPbU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0f0tEOxtBpliT?= =?us-ascii?Q?Ela7JZSUSoC7NEBd5iHQbp6ZBvuFElXkYqVCODFOEdbOExJ3iAUQiuyswjhy?= =?us-ascii?Q?T7S/6L01KovgIU/3tPzqLtdH8Qf8yRCt+4XnnlfTjIx8e4D/r8TyZh2Q5wpY?= =?us-ascii?Q?7IA9UnHuI0MX5zlbc95Bsgqhu2cI0djnikvPKQnNQj8P7ghzMon8OPu2u4Ia?= =?us-ascii?Q?iB7HAz/BXiK9HuYeuHP9J0KZ?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bafdeed0-4d2b-4eea-9b90-08d972c7712f 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:51:57.6721 (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: nT3tHTq+TYhVqF9crvrnIB943kmogXL5Q7J7cS9hhNI540GhLelWPGZ5OYob2Q0O X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3024 Subject: [dpdk-dev] [PATCH v4 5/5] crypto/dpaa_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 security short MAC-I support for dpaa_sec driver. Signed-off-by: Gagandeep Singh --- doc/guides/rel_notes/release_21_11.rst | 4 ++++ drivers/crypto/dpaa_sec/dpaa_sec.c | 3 +++ drivers/crypto/dpaa_sec/dpaa_sec.h | 11 ++++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst index b7e5128be5..7a07161f9d 100644 --- a/doc/guides/rel_notes/release_21_11.rst +++ b/doc/guides/rel_notes/release_21_11.rst @@ -81,6 +81,10 @@ New Features * Added PDCP short MAC-I support. +* **Updated NXP dpaa_sec crypto PMD.** + + * Added PDCP short MAC-I support. + Removed Items ------------- diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index fa4d276ead..d5aa2748d6 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -311,6 +311,9 @@ dpaa_sec_prep_pdcp_cdb(dpaa_sec_session *ses) ses->pdcp.hfn_threshold, &cipherdata, &authdata, 0); + } else if (ses->pdcp.domain == RTE_SECURITY_PDCP_MODE_SHORT_MAC) { + shared_desc_len = cnstr_shdsc_pdcp_short_mac(cdb->sh_desc, + 1, swap, &authdata); } else { if (ses->dir == DIR_ENC) { if (ses->pdcp.sdap_enabled) diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.h b/drivers/crypto/dpaa_sec/dpaa_sec.h index c94d78e046..503047879e 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.h +++ b/drivers/crypto/dpaa_sec/dpaa_sec.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: BSD-3-Clause * - * Copyright 2016-2020 NXP + * Copyright 2016-2021 NXP * */ @@ -958,6 +958,15 @@ static const struct rte_security_capability dpaa_sec_security_cap[] = { }, .crypto_capabilities = dpaa_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 = dpaa_pdcp_capabilities + }, { .action = RTE_SECURITY_ACTION_TYPE_NONE } -- 2.25.1