From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0059.outbound.protection.outlook.com [104.47.32.59]) by dpdk.org (Postfix) with ESMTP id 9AD934C88 for ; Tue, 4 Sep 2018 06:03:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D/sZ0bMNl149ohIN7axiNDiE+UFnaqN+r4L5CMWojBk=; b=Ry4KaFB5GjwQglG6il5TqjznaQKO8Qu5PGBM1s5nNHuv8d3iP/eCP7PN8BMpyO++Rces0H+Z8FwlPHg5hiZzVmgwUgnlP1yK1Dp6konskArRlnGyfUnQOy9Vybfi7+dYNWS2+eTL8d1RkCrUODjOadNO2hSFMhD+GUsupkHVV2A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.15; Tue, 4 Sep 2018 04:03:06 +0000 From: Anoob Joseph To: Akhil Goyal , Pablo de Lara , Thomas Monjalon Cc: Ragothaman Jayaraman , Jerin Jacob , Narayana Prasad , dev@dpdk.org, Ankur Dwivedi , Anoob Joseph , Murthy NSSR , Nithin Dabilpuram , Srisivasubramanian S , Tejasree Kondoj Date: Tue, 4 Sep 2018 09:29:06 +0530 Message-Id: <1536033560-21541-20-git-send-email-ajoseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536033560-21541-1-git-send-email-ajoseph@caviumnetworks.com> References: <1528476325-15585-1-git-send-email-anoob.joseph@caviumnetworks.com> <1536033560-21541-1-git-send-email-ajoseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BMXPR01CA0023.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::33) To BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f3731469-2a39-4d70-b86c-08d6121b543e X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4902; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 3:6iWFarR6aKvcMrPcaEvU8CfNmzm9fY2YUK0xO1WKzjkm3r92Awq+pW1nvZilx+odxYG3ncmFo9+6yW439ctO62SSrx4GDM5pg/tUx4BeHH5N9paYG5WNbFda2ON1oPXDYd/GMr/NxhcE4232A8F1qgQrmzk6uLZ578vQmHewPi9GVOTk9Jm9dBa9sbGCbMRD3/0uOq6nVYF0o44ts67cdlTQGBaVBgSDvdvP7P73rs4QKFjGeI0DDI7YJaBA161z; 25:/I52WCWXuV+YUO8IeUtdY9q3xOJyz+fJD372ISOTSDefR52DqpxCfbJ+xTQHlFM2YQd5WTLW7jupzDNDzTSDwekFvMpR62XmtCLs5H+eI+IO4fsIqvvwGS1Y5t60ZO0vLHe4MvxirV6e3dQx3jlZAXVa/2oB2XR4xnvPCM7yx2I5QalFEovasYDa3C5bxTuMOpZ3X74/r311Yi/Go/5RKVfm3sEEol8UkoIg9AR2A0sjusVoOibu9q8aXfS8Frb89NPp92IYHwXPwZRSXTs96Us6lht82LfcehtQFKP2/60P4Whk0Hdfe6ESpI+Pd/eQOPLYJVCY1X+tDAKpwUyP1A==; 31:FPFIENg70/uGJccTQadohkzjcwNxW5h4698Lx1ZlZDz4BpHatyP+NO1IP015cg17jE1aKCb33wGIGZExDNnzzzFOHqoKM4i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MdMXAL9rOMNqj6kV0CQm3ud8mG1jZQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3231311)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699016); SRVR:BYAPR07MB4902; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4902; X-Forefront-PRVS: 0785459C39 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(136003)(346002)(376002)(39860400002)(199004)(189003)(26005)(51416003)(52116002)(76176011)(81166006)(305945005)(81156014)(7736002)(105586002)(316002)(6506007)(106356001)(6512007)(8936002)(446003)(54906003)(25786009)(68736007)(50226002)(110136005)(53936002)(16586007)(42882007)(386003)(5660300001)(2906002)(72206003)(50466002)(6486002)(36756003)(6116002)(107886003)(2616005)(186003)(3846002)(478600001)(66066001)(476003)(8676002)(47776003)(486006)(956004)(48376002)(11346002)(4326008)(97736004)(16526019); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4902; H:ajoseph83.caveonetworks.com.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BYAPR07MB4902; 23:JC8RG0UkuX7mDWoGOwRAV0DUlFmEcXr2PdUFurcUO?= =?us-ascii?Q?umXZy8zBtII9f3CQCpZUn5/BN7Oe9s37F5CfhIIyfzCIKWlpO/IS4is8uXM4?= =?us-ascii?Q?tqK0cNrvlm/hum1yz9v+MUkx3hWabI7P4SuhQFclqsdCSWP7FzCedu0ac+b2?= =?us-ascii?Q?ds5pJn+T+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DXIpWipLZij0Zg==; 5:omFTyAl2KIPgRg5hdyo2e0GKQ8KcHmhu8Bbwbv03SGrgdI/GdoEiA/O+ebMvBppttG3j0T9vQ5VwSsD0VyqKUOwRJYW+SnNFqtsvnDZAZsJQqijMzpYufYQiwFp9g2/IuW5WxElnauNoJZk0f21ySZjtyelsRZPufVOC26Xgrz8=; 7:RrIm8s0dY5QdHz5uaB0++xEKyyV7EipmZ70Vz0UXbbJwmPs4kgdmWxiCplMA6ipNbmVgCKOG01MOa9GkSLfS6LTzSeCJxQITwqoFvCjuHgwMO0XhcMOEfftw8qfVwVym75FcfDjdluG1w6EGm/yCq/9ITD713o+gTjglU9oQX/Beo9nqkAAaiPrEKNmsqgUsWdOeb3Ev+Ho+M+Cn/maW+fW1ugw7WkwKRQnVE4HvtRuMWwU9mg1RM5UWHfZ36gF8 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2018 04:03:06.7411 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f3731469-2a39-4d70-b86c-08d6121b543e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4902 Subject: [dpdk-dev] [PATCH v2 19/33] crypto/octeontx: add supported sessions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2018 04:03:12 -0000 From: Ragothaman Jayaraman Adding AEAD, cipher & auth sessions support. Signed-off-by: Ankur Dwivedi Signed-off-by: Anoob Joseph Signed-off-by: Murthy NSSR Signed-off-by: Nithin Dabilpuram Signed-off-by: Ragothaman Jayaraman Signed-off-by: Srisivasubramanian S Signed-off-by: Tejasree Kondoj --- drivers/crypto/octeontx/otx_cryptodev_ops.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/crypto/octeontx/otx_cryptodev_ops.c b/drivers/crypto/octeontx/otx_cryptodev_ops.c index 51f374d..438208c 100644 --- a/drivers/crypto/octeontx/otx_cryptodev_ops.c +++ b/drivers/crypto/octeontx/otx_cryptodev_ops.c @@ -298,6 +298,23 @@ otx_cpt_session_cfg(struct rte_cryptodev *dev, chain = xform; while (chain) { switch (chain->type) { + case RTE_CRYPTO_SYM_XFORM_AEAD: + if (fill_sess_aead(chain, sess_private_data)) + goto err; + break; + case RTE_CRYPTO_SYM_XFORM_CIPHER: + if (fill_sess_cipher(chain, sess_private_data)) + goto err; + break; + case RTE_CRYPTO_SYM_XFORM_AUTH: + if (chain->auth.algo == RTE_CRYPTO_AUTH_AES_GMAC) { + if (fill_sess_gmac(chain, sess_private_data)) + goto err; + } else { + if (fill_sess_auth(chain, sess_private_data)) + goto err; + } + break; default: CPT_LOG_ERR("Invalid crypto xform type"); break; -- 2.7.4