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 A683FA0C56; Wed, 8 Sep 2021 14:02:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4A5B41207; Wed, 8 Sep 2021 14:01:48 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2044.outbound.protection.outlook.com [40.107.21.44]) by mails.dpdk.org (Postfix) with ESMTP id A137F411FD for ; Wed, 8 Sep 2021 14:01:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R4FC9qdXl0MnjpurEtkLTLL54btZwroJCeXW3ve/iFLuV1TCKt2EouiymdRR2ln0TWJnk/bpW8FMdi+yBWuLuVEzKh0QXspbkETnxEgHXKZag5G9pbqhn/+q9BXetLp/fdvBYjibZ51hVgZQGtkUE2K6DD3hbrMJux8yJlKXrWHkrluwd/vV7DJK65lqWmBEnLJwUdP8xy8DATapCnL+5x4R2Bq+u1JfxlFxLUhOmvEFOIWWxTxpHEpHZVFYa3dk+wLKnDcyTGOJ81KJbzCzOEA0+3SyjU5jgrzQvmiWt7VK1BZo84dp9Lu3ortc/E570MmjG3D8ImzfFoq4Vo1A1A== 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=fmEPeuJTM5MsBIjL51/IUMKprRPaMcraA/rZnXQdYWGLdy+K0NZrheqPMoE5ynPJ3hGHFIdZaxbJZ9PML0sLMeHpjMYZFfpTykJ/niqEcgbccVuqaRX8A9bSa4Qd3+HBeqdJUMUlJEQQTjT6xgd6AtA4EwERcBYx2xVhMCn4BnIuJ/vBhmA1rtYDeoN/DkcneQSWSyp5Vl19uu3uXCC641FF12rMBbvGORXAEdUaUSp2ae18r9vdW7OvZSAPGpy4HlmgltGSSjcOdcE6RCC8wjCsnkyQR5bjJJbybguojokmF2uSpTDkfZcWPJiHh0LLxGP/FE/ngsugbUsoGMAbng== 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=l8zJYVQreaoaAj6VhFTHBYyjTDVt7mFsfDVM6nY4dsUxDYAClW2gXAvWQiV2bwN4fHxDibVbVrAJJdPC7IM4Vtf+6T3orsPfLl6fVyK2Mm6Cvj5dr3wLZFcAKs4XF0OrMAGPal3SNwM8CzMLYzxd23VGxJVl9GXw/8iIVdZVyxk= 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:46 +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:46 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: thomas@monjalon.net, Gagandeep Singh Date: Wed, 8 Sep 2021 17:31:15 +0530 Message-Id: <20210908120115.3548009-5-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:44 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dc268f32-36e5-4912-4538-08d972c06e7c X-MS-TrafficTypeDiagnostic: VI1PR04MB6958: 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: 7PGNkipc5sHgl+sEXURH+qbQ58J6wswGHDnzFnL6u7epOgi1354/hG16aJptEb6RwVkmODz8bt9573GYdPgIwIpW+5EBQKY6lSnV4+v/haMyuwR+uN+jF4n2Ko+Nn0Kvtz3SjlLVcyDmDCewI1r4e2kV5Ozb/f6cZiO+iZIc1mnGhSZG+hebK078QrEXwhnFI7uCqM7NHYgdSpBDWfwm6ZRbFC+K764xCV7Iyfxjbbe+r4PJVVQxQ4zVFnslPc+GAkHhwgYxJssFwAyP1uJo6M2Phpsx66F3qg+2Q6EVQXHZFq0fyLDzaauENjYxkoWkcHlRxNzyJ8Bhb19QZ2qoZX5xjz1UjDm0/FHkT/jIvEca8rAR0TEOLF2Ir8pfDoUxMkyiE2dHnHXFksFwNF+ANXVVDzD8Zm+t/rRsDrInUaTRjgHAUyODyqx0VlZ/O41JoJSA8LBYEKOtxBA4VImULHytACffrQl/WeHI4XNULYpLB2Kg7HRDfGe6w0s9pwqDndgjVG3YETDRhsH+wyQtON7tNHoxxIuMgM/YjJjWPS0rMesdAtsidYpkPmTMlifIfayRd5mt9/XDrkgAfnbrfOe2Q9kAskTX3VsbYo7ekAaixdSC956UEfgnTUDS/4X0JwMT0Px1IUbYIr01pR1cnXVKwoKUrh0huPDwjnSwETmgdfC6zR/qaeH3N0QYWCsD+aBfR9VubPoOMeEC6sz9ILv0pHz+0O25LmrgbJEJ6To= 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?fhXCl0vkf6LQ1owfVyLBl/hzYVmxnhMHLY2zSKf9PM7rk1QT7w2KDPmYze2a?= =?us-ascii?Q?p4NaCSgdhjcsz5EP3kHZBm2yaObWhCUoMmvWSmCJzx2UzawrFjBZt+m1rea3?= =?us-ascii?Q?Lj952z2ANgIHFLwDeiQRnCFQAqlslyJcvx/qcQmVJqQIgquB6L/5yuOyZ6oA?= =?us-ascii?Q?hHKl+r0vhjalepQ+4ejWj8MQ/nm9qXUckRnm7wneVOfX1ywL2/3wbUnFh+Gb?= =?us-ascii?Q?HkHU++2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Wy?= =?us-ascii?Q?REHaS72k/fsYvf/xB5gWlpY6tfYVdnf2IxKY0pIiMbGpq8+nx3ux2k4uEvR8?= =?us-ascii?Q?MiveLEZ5lGAZZo31E7BDHy9OMScwHszmWgdxTsi+xICJhAvCXpE+qgxinESL?= =?us-ascii?Q?/URwC5os4brYJhJSGfBBJq9Ab2qbmClsTRJtJomUwoJdCbA6ooY4vwB2Lcmb?= =?us-ascii?Q?1nePg4CO/KzZ23xLIUQ4ivpN?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc268f32-36e5-4912-4538-08d972c06e7c 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:46.7121 (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: JnBRaKDNkYNJtgxvLz+mSftwPyaLsRU2tJGR6OcyUleN8hNz6tfeogr2E/StVUPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6958 Subject: [dpdk-dev] [PATCH v3 4/4] 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