From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0083.outbound.protection.outlook.com [104.47.2.83]) by dpdk.org (Postfix) with ESMTP id 309F15F24 for ; Fri, 23 Mar 2018 12:50:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vbW41IUBFamCBzaqJeVYrFcTVKpaLwXBeA0LZrdRGBg=; b=Lz7wIrqN+214aqKwC8ILVCscWVNubeKWE3LZzl9GmOK0keXYU7skXi8qEEckGm8DSc2INAguKgmGftUk42+zk5V3IC5hqVoKMeOHgExuhAK7UZM+aAr/Q4LMq0OanKoUBJ+MIUTlFjQR53HHi/Dq6sk8SI8zaf3/T267qcYPokc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from localhost.localdomain (14.142.187.166) by HE1PR0402MB2778.eurprd04.prod.outlook.com (2603:10a6:3:d4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Fri, 23 Mar 2018 11:50:44 +0000 From: Shreyansh Jain To: dev@dpdk.org Cc: ferruh.yigit@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, akhil.goyal@nxp.com, Shreyansh Jain , pablo.de.lara.guarch@intel.com Date: Fri, 23 Mar 2018 17:34:55 +0530 Message-Id: <20180323120456.16920-7-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180323120456.16920-1-shreyansh.jain@nxp.com> References: <20180313054431.19556-1-shreyansh.jain@nxp.com> <20180323120456.16920-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: PN1PR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:e::26) To HE1PR0402MB2778.eurprd04.prod.outlook.com (2603:10a6:3:d4::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: eb99decf-e0ff-46d6-d9dc-08d590b450b7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0402MB2778; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0402MB2778; 3:pQT9HHy8IiueNjaWBnQzACYCZDGnjirNjktTPIZVsWZTY6L7+3OJ3g+FwVBqvDot6ibfNRGcXVUi4dIyigktki0OG7BZx19oIosvhdpUtw1mpGD+67GT5iv60IG6QPTOnFQ/EH8s0FCNN8uOiOXrHk3axYU71S3n/UjvoocT0N4Zktou8qKjmju7jirzbtTFuN8JotLt4eHM4c6e/NJg0uEr54enZloW4fZHPfcDDUJMoTqAKH+Rzqvp7v5ZZ6mx; 25:SRUHbxQdkR6rTGDom/KqkkASBht9aFVjyCDSwQb0z5WuwxMQoA/90RIetpXCudkrvG08O70VIXt2SG5VM/uXy0J912sf6jMsTo4aInRuk4jxy+jTqdm7WG2USt3XBZEXNx+cG3bDfUiSCwTUiGJNd0JJh/ZP+4+jhnne8V1eZb0cC0yfdMoQ0pUeDfjGOKJbT5DDv1150JHa+uXbsD1RBsBlsugWJsGo33HjRzmEdO7P+VXjDPxV/laRGc30PraCEjOm+1oL4NOan8dDavWLkcuWkCggAO7dMsUDf6uJY+qdQ17tjIc9dkdk/YrJvKy5pHS+zCu++qYtb233RzwyCA==; 31:g5Z3we21nAqM2r49511LqsemDWHOB4mSGV0SJXtIWV0Nfasd0tCgY2hSXaRxkf8r80Soj/8CQxB41Ahs8hEwDTn8XCTF9lOJDwMtlk9FJwuRceYSqWkR4kvsrsNL1qPBNgs1CcZQYD/G6j7rt7Dcg5jYlbSr15WkEP3wlEc+eiv8dHVfnEwMCtULNuRszzNBq13X2C5dRiZTB3wwoxzLN4sq+CN6O+a/NrTQN9muZLE= X-MS-TrafficTypeDiagnostic: HE1PR0402MB2778: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0402MB2778; 20:mvkZvB1uvLmyviLpFx8mggGZ42FppAwelVJtWeMmSQR/jO0AEzFvnXFg/TZwj6KlYDBYPhsXzr87cuEKU63+9mxg6JLrSdHBnZ1ae8n9Ir9mBiDA7KMYjYCQArzClwHWno0CStdYTEAR833N7cOvt8qI6CnXqNbkP5tKCj2F2VanORU8t5FmAEkWhNmg4DdXn/PVSydAcxFPihFhY+AjyqcLqND061ICJBgKTLkIQMX6ly0CxIehaKC004genCG5m48fIORetMSmOqiEZYUaUD9dkms6SN94Zd5XZv5jxGmQW90ciuc7SPHWEPpF3Lx8cqB1RcoQ+Z4+M1JgJ5fMpaqXXJnUj7U+k2442a9xvXXbB6MiD81XD5RZr/LQldi+c9oQaw/+908FB9h19kkelI/xshI9vbQLWqOez6hAFetz0rvC0Hud2I3gw33ndfImUx+QgoCDQOnb75PODQjCi6jDv8oGlNZtJ3p8fO0wAmNHjjUniSUS5Nc3q+FXO+eA; 4:1chVcxNyzexbI4JtdCk5SaSSQohIWjYbHVYF4K9aA353YyT/R/WsKeV6ZCGIcduNjFo2sauJyTLIOWB8qvajWzIY+TwojSjOM5j8tHma+M+kpEmBNxJGnV+vm9mcx1GQcyGIHAEOHa+VsqwYeJ+P8ECYt0zps52TYwfq1p6gsTujzSFPWr/GefI8foAXzFdaZ33GZpvn2hKB+WdwEfLDW4hSz4SN0GPMLBNb3FQaN5Uhyw5PQMMyD4UJ5k8e7vG5LokJL8Igcwcwlp7TPGUi0CPGS4GsOAP9YsFw1Hpbjj8QOWG9c3S/LThQX6jBrw3A0OLF9i3J/GT8rZ4YSlXgw/16JfUsBT/ka0kU5BmMcls= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:HE1PR0402MB2778; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0402MB2778; X-Forefront-PRVS: 0620CADDF3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(346002)(396003)(376002)(39380400002)(39860400002)(366004)(189003)(199004)(6666003)(59450400001)(105586002)(50226002)(52116002)(25786009)(97736004)(316002)(2361001)(6512007)(51416003)(2351001)(86362001)(6916009)(6486002)(2906002)(16586007)(26005)(3846002)(68736007)(11346002)(106356001)(4326008)(1076002)(5660300001)(6116002)(16526019)(6506007)(386003)(186003)(446003)(36756003)(7736002)(478600001)(305945005)(48376002)(66066001)(47776003)(5009440100003)(55236004)(8676002)(81166006)(53936002)(81156014)(50466002)(8936002)(76176011)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0402MB2778; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0402MB2778; 23:1G8MhWbj3b9CmdmBUDYAgOcCnr7q/yRKIvQJBvJ?= =?us-ascii?Q?u2o/TAAwJcLmy55mMGw57XI081SkBgTCjb3aMRM9cRfaYKu2rhwe6Y8icpqQ?= =?us-ascii?Q?qT4cGz9bTPNXGR9ESq+w+8qpkUZfSC210ZP1BwIFDhFO567aNKkcb4zmNXNj?= =?us-ascii?Q?P/Kdr7W61QqRUv0Rwi1NebmXfYhUPv5vIaPYbNnFa+rc84ati6ZkST7VfD9P?= =?us-ascii?Q?wieG/ThIP3hP2gicHwuIC562kL4k6qAHd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OuazO64ASJmqoihhC90kHvPozhp4FSpWp8SMU7YrqqLqj7g=; 7:9LKIvDdMPg2DZa5j9Tvl3nrnAKBJluu8IrIGULHC4jCcKSiHncH9zi8LqUNqkyCJCZTIGPIq4RN0I5yeViNDmIIfLizUfP8Ql5qX/L6fgno9P2WmDUhW9ZxuRtf6BFqzDGW9+dxa2245YlLsSjwE0sTrktZrbSn9FYKt7IndXuICeGjIsOhzUur2QJ9HbKIgptFLBbmZJBaGL71XfAF7MqtBG6l7aXZU8vPmpNCPWz4XEmRXLUeod/v7JZm/1wi4 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2018 11:50:44.8344 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb99decf-e0ff-46d6-d9dc-08d590b450b7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB2778 Subject: [dpdk-dev] [PATCH v3 6/7] crypto/dpaa2_sec: fix incorrect debugging prints 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: Fri, 23 Mar 2018 11:50:50 -0000 Digest and IV length variable declarations have changed. These were escaping builds as the debugging macro was disabled. During dynamic logging change, they were discoverd. Fixes: 0fbd75a99fc9 ("cryptodev: move IV parameters to session") Fixes: 7f0034275a24 ("cryptodev: remove digest length from crypto op") Cc: pablo.de.lara.guarch@intel.com Signed-off-by: Shreyansh Jain Acked-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 9a7484554..0c28b1d05 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -136,7 +136,7 @@ build_authenc_gcm_sg_fd(dpaa2_sec_session *sess, "iv-len=%d data_off: 0x%x\n", sym_op->aead.data.offset, sym_op->aead.data.length, - sym_op->aead.digest.length, + sess->digest_length, sess->iv.length, sym_op->m_src->data_off); @@ -301,7 +301,7 @@ build_authenc_gcm_fd(dpaa2_sec_session *sess, "iv-len=%d data_off: 0x%x\n", sym_op->aead.data.offset, sym_op->aead.data.length, - sym_op->aead.digest.length, + sess->digest_length, sess->iv.length, sym_op->m_src->data_off); @@ -433,10 +433,10 @@ build_authenc_sg_fd(dpaa2_sec_session *sess, "cipher_off: 0x%x/length %d, iv-len=%d data_off: 0x%x\n", sym_op->auth.data.offset, sym_op->auth.data.length, - sym_op->auth.digest.length, + sess->digest_length, sym_op->cipher.data.offset, sym_op->cipher.data.length, - sym_op->cipher.iv.length, + sess->iv.length, sym_op->m_src->data_off); /* Configure Output FLE with Scatter/Gather Entry */ @@ -877,7 +877,7 @@ build_cipher_sg_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op, "CIPHER SG: cipher_off: 0x%x/length %d,ivlen=%d data_off: 0x%x", sym_op->cipher.data.offset, sym_op->cipher.data.length, - sym_op->cipher.iv.length, + sess->iv.length, sym_op->m_src->data_off); /* o/p fle */ -- 2.14.1