From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0071.outbound.protection.outlook.com [104.47.1.71]) by dpdk.org (Postfix) with ESMTP id 0D1A55F65 for ; Mon, 2 Apr 2018 15:52:10 +0200 (CEST) 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=EBt3zRjKOy5bLRnNKIMzd13d9/JdkQa0QygxNQFGiYqZ1Y96LKrfZm9xT08zqNTXQSywTWgs3OXuZvQFlllcg73OcJRUfVEqJ2uiDdnFffuaipNQx4KyBdV/COVFbsYw2zjOUkoCvfRs6VD3ALBR39jb8xVX8t7T8S9loWqz3l8= 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.631.10; Mon, 2 Apr 2018 13:52:03 +0000 From: Shreyansh Jain To: dev@dpdk.org Cc: thomas@monjalon.net, 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: Mon, 2 Apr 2018 19:36:00 +0530 Message-Id: <20180402140601.21078-7-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180402140601.21078-1-shreyansh.jain@nxp.com> References: <20180323120456.16920-1-shreyansh.jain@nxp.com> <20180402140601.21078-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: KAWPR01CA0081.jpnprd01.prod.outlook.com (2603:1096:402:c::17) 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: c127cd60-23af-44a2-2ff1-08d598a0ed2e 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:syelaRN3HST59+w62PEhDxukD1Z9lysGn05xU10lzv2qe6v1PHn/9YHlByD3yrpm1xVvbC3vCvxLMeu93DY6Mbj+KAhTNFNAV/hULtqkBGXSZQKbjvlOBUczcGKR0pTsHtIbcMxvmK/fTmN7Ducqc1hGhrz8uT1dvo+14lNDjFk7BHpEblTf6kJpvajMrgz4sFWfjycYR8GcWGezzA+N68JFTxDNUspDu8e0FbJAas7qh9DOgS8DgV/W4OMi8b1k; 25:KgjNxx5e0IjIz86XSxsjepEG+FHDR2OrPhyN38NJUBIk+erPicNkzEElEz153xjOkvuszrSxmE3+vY3837PJX2+3v9F8D2ckoHKp6M6/JyLjv9qXQ2ga+/pK9aQKilNNDmpO1KOU/Pwz1cj/Y54PdQy9VvJkohtimo7VshiGhi4RSu+3fFVCoHR2amOnNCRPks7RGla3+h3A1Pqj8sSbWnN2gIlNlPcSMKuVvpiMgqItk+i26BrzsPaT/6oBwvKA2YAeDw/YsotVhqaP6+ClcPazN9zOOwW6ExMB/eCWEiNUUxTsF7M3tJgBNaYPqL3K1ejoByqZR+2N8NK9hn+7vw==; 31:VeIr8Z2BM3VAAaae8PFqBHgr1HkDLJgLpo+Dbh4PU9QoCpmOD7f3B2IlNGdy7V230fNF4w2uCI2EUTb9qR6KeteTcPFlQtKyAKr2cjXCsnAdCSxInnGpX5mH3n+Mbqa3NmbAZNZb7BFLt711H7jFeRqOcE4K3fLjf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Scan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:HE1PR0402MB2778; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0402MB2778; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(39860400002)(366004)(376002)(39380400002)(396003)(346002)(199004)(189003)(6486002)(8936002)(11346002)(2906002)(8676002)(52116002)(6506007)(106356001)(2351001)(36756003)(5009440100003)(16586007)(105586002)(66066001)(86362001)(386003)(81156014)(81166006)(446003)(50226002)(2361001)(4326008)(6916009)(59450400001)(2616005)(305945005)(68736007)(486005)(5660300001)(6512007)(6116002)(55236004)(97736004)(3846002)(47776003)(50466002)(51416003)(25786009)(476003)(486005)(478600001)(76176011)(16526019)(26005)(956004)(48376002)(7736002)(1076002)(316002)(186003)(53936002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0402MB2778; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0402MB2778; 23:nupFQPg21kgzxAEXsQKzjq1wQ2eYOQKMGyuUIW/?= =?us-ascii?Q?MLfDma5qOMaDTdGdsDc6S2YUrRMAKqf9xSopZ7UzhorrVMFsqcTvVBrAFErD?= =?us-ascii?Q?QdarGAlZ/7uVTQf/hKcMTtWPf+5BPS4DGYgJCrw8zEPF2abJA/6+pyhmVUEQ?= =?us-ascii?Q?YNpX39As0036z0Y1xo/iAD3fCXYuskp4+3EebCcw9UJlzcFRI3ECBsX2kx+F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507HPgYGZ4jA==; 5:DocWQ4WjhY/oFyo4ZT7sszuYlJdU45VPBUbLA4ZhEa6t3JpdXylQmEUcf0DYKCe+dYjNLg623M4PgWEyMXLKO4tpWLDuLPx3AOtRxbgvtKNnrQQfrJXEva1RBM75jW5TkRIaGPZ760BjkreG+yY6kZOGlLO7vcU55U0WwVvlEvc=; 24:A2qxjlQ6tVlyTiUKDIA8YTvvGsnIkfSDoIJi5zvTu08XSGJ9sEov9xD/aeQa6le/cbnCnf9fYdilUtk9drT7G44pkbRETEMcoF2nPbrCf1s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0402MB2778; 7:AVq2pFNmIpZFHWsmsJvMGksufKuKCQ/SyfDkuEJW/jm67ecuZMg5mLC1o+HTOrmTGo+72UVUDnx31Q/iSaGwBM3sz20VW30e1nDE4T8Lz9batslViFKsjQywMgA45lY+8P/ded3wV9YcMO4+OH7q1gulrCsnd/ccxctKH4jALrTC06vD4tZmVfGpyp1c1Ng75+rKnI7RcEcuOWX6F3rW1sEAJKpk3YtQlBIWwwmz9yqcSJpJUh1mhPRjirJ548GM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 13:52:03.8272 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c127cd60-23af-44a2-2ff1-08d598a0ed2e 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 v4 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: Mon, 02 Apr 2018 13:52:10 -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