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 188E9A0C43; Thu, 26 Aug 2021 13:24:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 28D714120E; Thu, 26 Aug 2021 13:23:46 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10066.outbound.protection.outlook.com [40.107.1.66]) by mails.dpdk.org (Postfix) with ESMTP id DB1BF4121A for ; Thu, 26 Aug 2021 13:23:43 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iGnDcelMnTum82VubIlZk6eQgNj+zOWA78iQ2E8cYrNQ7/I3kB7VFhD45oZr3UZjEIPqtf14NiVwGUZukKYVBMk2i+CrrZcbh8N2PLXGVfWNayCoFWsGP+2e2spkfh1S6vyvJvkf+AQnEnZJ4fB+m4rlKS0l0o1Q1dI2bDZbM8Ps7P6qUE25Cd8nM/pBRZ2bU6TApGf7y0DOW1s95ExJzyIC9VCIhXEozYkhue/el9886qtvx4n2/E4sWBGOwx4dO7vmyHQ2jHcxzzwgX3sV/Jlfxo1NPez6MwcHdpDugYETvtqUODmUR3sxeuGlYDw3zynmlOtg9Ys5PdhAg048BA== 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:X-MS-Exchange-SenderADCheck; bh=WGRhHKLdr3Qcv3Z31TBey5MmK3Fma1aWcpIrFFP8WJo=; b=Qo4fZJTE/rYzhA9b9evZpPnSlfkTddsk1N0RMjWe2vwnLpoBw53Jli+/Yh60ftZE44JEHJv55UoN48S+AYclV1kAuQFBhUQOlbBtEkj+fsGtpbLnsvO8rV7N0XYJiJUF27E2y/9BpBfWts/VUiUD3i1q/gKfeUynT7lQ+VK+6YyHPdxUEL7WxRs3hQ07KsgSZ22H+9qBEfnXxrDlYT25mZClWknJrx+exAbvpvPt1badHBG7CmoET00G5jH4Px66wmrpNASoyjK8BAIVWrs0dYbHmRlPT3HrWFJNbCNobSNc8E5Y6YWW+xzcSpJJp5+8WMuPR7IlLcGKZUkvADmLHg== 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=WGRhHKLdr3Qcv3Z31TBey5MmK3Fma1aWcpIrFFP8WJo=; b=sUx5ZSJ7jfAoRS1KXGqBeLh7i0AkzgVQlOgqtJE/zTszenYS/ZOA91Wwi835TnDRydR2aRV3097BxG/Osb0PG2VuuSNgJHPo2T5C0dQp4r2gVIanzW7boP96iX/gTSQbHMLUI0rLIBEagGXZM6t1akVgiKhKgpnwShO26luBKYE= 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 VI1PR04MB4477.eurprd04.prod.outlook.com (2603:10a6:803:6e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.20; Thu, 26 Aug 2021 11:23:42 +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.4457.018; Thu, 26 Aug 2021 11:23:42 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: thomas@monjalon.net, Gagandeep Singh Date: Thu, 26 Aug 2021 16:53:14 +0530 Message-Id: <20210826112315.1375237-5-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210826112315.1375237-1-g.singh@nxp.com> References: <20210826112315.1375237-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0179.apcprd06.prod.outlook.com (2603:1096:1:1e::33) 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 SG2PR06CA0179.apcprd06.prod.outlook.com (2603:1096:1:1e::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.19 via Frontend Transport; Thu, 26 Aug 2021 11:23:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e76de785-5baa-4ebb-b2f5-08d96883f5d4 X-MS-TrafficTypeDiagnostic: VI1PR04MB4477: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1060; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 92OiUAslDleKlKncUK8VAZMWaP/69+/r9ejKVzQ4L13W+zREzYMmMZ7X3zvb6UFh7dNQbvGMyunl2b4C9riCz5+2YdP5nVaMs5RhS8TCuWvbbWFf/uZfizQ7YJpW7cuLpN0CWCfMKDUb5L2bEsVOH0simst+ynZNCI0QS6wBgfyXi+ClKmtgmQ/sP1sV/5y0v0vWX0+KtdstDv5F8p431HakIvm2e9Ul5lmOfXnfkCHlxO8pCkARN7p9TCgN7lLGaBBNp2kdlU9FuQG57nSmfiYkXHHj81jOL70c7qaGeYWFhcLfYo9I/Op12ATYtH/uCXgdqgbj2pXK7UScaE0RTZjyj0d2XHskFgk0dtGD0p3ye5KxMDXcq1bMWPIwinf5hS2ZsDbLj7LD+6AmDgs5kFudVIKH8hwbjiElYbtaOS/Cy+IlS6hHc2+unEJbuS2ui00MmhqavpZrv1gOiH71lcaeLEyCw6C+a1RNu/qFYSAEIFhDqu91X+FqBbSyXurYzJHof5h4eKiJbjmsZ4FestnCy+RVg0S/F0jroe7pRYTUnGJ876S003ciaYSfM436NRBkGkLfbYBZQSebKew4aYhIGH+PoDmSjnCf5dZL90Zqd09jNurJ98570MyXjr8brGPs84zGyvrSzAL7YgOfX6+FCdRzlDmpFvcmWEHWNs5tX7dP/Mt+HpZ7O7x6GdJaM+Zzq4VCusmMUF2U7vNCfYqd0i8iJ7hmlz7wRH+wtE4= 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)(366004)(508600001)(55236004)(66946007)(8676002)(8936002)(66556008)(2616005)(26005)(86362001)(186003)(83380400001)(956004)(66476007)(6666004)(36756003)(52116002)(7696005)(1006002)(4326008)(5660300002)(2906002)(38100700002)(38350700002)(1076003)(316002)(6486002)(110426009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ch0WetFrrJpCrb9kP7EuDCBmDM1cXBh5+r27THOColMVrRZ9z2ZO43djnFGC?= =?us-ascii?Q?C7RfTuka6Y4NmTMgESpiNyDehAx57Geq5BGNzSkQMaVcRApLbvYz63UG8Xl2?= =?us-ascii?Q?Z66jER35MYpOgC/Gmf5KAE7oZM8xaypgK07KWSBJjWN6x1/bGjw8kvYlHeuP?= =?us-ascii?Q?b6OBNNJu0ql5RMMja5ALmz6R/b0aULKPkLaog60OL3b+RZPWMJqvb41bPNIR?= =?us-ascii?Q?+FbR3MOVOi4ZHZgXSHJE/si0yXLX4QmW7L7bZWoIaaTZ6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Iq3pa6Tyw3dny0nlADAVVdZrrRddPWfTFpcVxC7My?= =?us-ascii?Q?PwP0xL5B0w25cf1wenqQE9R1rB+CQTU985EMPCMs/hT6b3EsEvQP0JoLsfRx?= =?us-ascii?Q?otMLe6cEy3DU4gI4fq0c9RG/mNpGbYfPpkmk3LpgGj+hCOSevMjgOqZMhFGi?= =?us-ascii?Q?Hnu9eVLeRXsUbLkttzZZjZF+?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e76de785-5baa-4ebb-b2f5-08d96883f5d4 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB6960.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2021 11:23:42.7412 (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: dCLUNzd/lhRHQ8/mq5+o4CXL2iRcotOQHCKf4rzoLH+wodvCygEvIW+E3J6iVErE X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4477 Subject: [dpdk-dev] [PATCH 4/5] 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 --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 4 ++++ drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 1ccead3641..fe5cf76162 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -3290,6 +3290,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