From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30050.outbound.protection.outlook.com [40.107.3.50]) by dpdk.org (Postfix) with ESMTP id 237105F12 for ; Mon, 12 Mar 2018 10:11:19 +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=nAKRX+Fv1vmDTZ/+Wk242WR/d6AbyZsTQxik9GVS33A=; b=EjWXvLkorv+xR75eQPJWkgz+mg2xrUZk8w9vv9yWPfIgmAMc4YMr2Wo9xkwZI5JVDzSArlxCTnpu2NlgxOWSgjjCL3+U2Ah3HFsSlb6O1g8AQMBa3+9ZqPAO7AERHXbQf29JMzGJ0TiAL1hNeRWgdkawXbmNO6ZQaQuQ4jOnZBw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from localhost.localdomain (14.142.187.166) by DB6PR0402MB2773.eurprd04.prod.outlook.com (2603:10a6:4:96::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Mon, 12 Mar 2018 09:11:15 +0000 From: Shreyansh Jain To: ferruh.yigit@intel.com Cc: dev@dpdk.org, hemant.agrawal@nxp.com, akhil.goyal@nxp.com, nipun.gupta@nxp.com, Shreyansh Jain , pablo.de.lara.guarch@intel.com Date: Mon, 12 Mar 2018 14:55:46 +0530 Message-Id: <20180312092547.18472-7-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180312092547.18472-1-shreyansh.jain@nxp.com> References: <20180312092547.18472-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR01CA0098.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::14) To DB6PR0402MB2773.eurprd04.prod.outlook.com (2603:10a6:4:96::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2ccb5a67-0b95-4168-9766-08d587f9369f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB6PR0402MB2773; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0402MB2773; 3:58NYErSlhKklkuTvedQYWaZ/YYL/NiwYMAoqOv6T6pyTDoBlWdE0B3OfWekdHBX1hoDoGqJ8Fk8dVtj5SUeBk6PS0UkpAXagEjJ7SFHGuEb6jb9vYQ+cM5lgdp7NhQBbJGQDx4nKcsFiUaqO1YxlH/X0cqBPvm3tvXEpdn48io/VcpwwbhqZ6IGPbdcOCIj0Fns5yxHDdohLc+arDlFDivWX4T+Q6mZ+yx19y7B54GOp6zlu4biJzNsMZXy4DSsW; 25:RUmw74+bnwhkRtPRvuA6niuTM4NKn8ijzSIa6irLKhk4as+5E5QstJPlwU6sDYDUAnPDAIg7As5I+HUz/fye1ovOfGWFllB9VZUlVXg/jbSI+MLD9D4DHMdLWOSr4M/VhG+YQqJ+TpLx4hn/R5x624TKWIN2RUcSY+IF6fNB98lEQ1pXrBC5flRmuJHgnIx9q4YuYUU8f2jK4iGpK7NuCvkGitGI5GVCP+eYH17aDSErE3Ueo98wi+lXoI9eKH9Ryjz31ch9HDsGuzLIlMue7BhuKvlIsCqrMTHP7CePrqHhn+Pb0L32AIADn/Y7AgTrdacoW3jOJC1Sl040wmwMKQ==; 31:3FdmQF1PI9r0ocuDSinslAJJOYDTmniZhSPv0Jb1+jparvEEqM0+qFyAFVwjgrIrzfJK5ILqLz1eyzZ4Ynbn8CNJtN6dnPLsTWxnkTp1PZExJYXaV2H33X+Kn1+uV4Sxa7zNTWdgX0NN7JYsNtSqZ/A4/4uXv6aWw8mwG+yF1I0jlVLz3H812MugXVkTH42Dj8XzILLha/LNp4b78ylFV18aV2HWPf5VIKv6kHZPIUg= X-MS-TrafficTypeDiagnostic: DB6PR0402MB2773: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0402MB2773; 20:CJvEnJv7t3lMFpBYKi2VE9mOjOWKlaDlK87KytdA7bnv7HGPQ2XmWrGw4zWsZpWyPhzFFVGKsLZGp3R/UAUiTvSCARmA0G/D3QWxRZKeD2wj7Fb7MZgfazIkHqD00vlNsZlfD00cpTeWJFH5WT0s6OvrTaECUhXg3txky+d3xOe+cPbPz1+0DV/yW+br5iOXaNR59i/hXvzbp+s51RpT40rWLalikjVNwaBRs3Yw2gKiQBA2ZMdFsNZnL6+FyZQ9xvHaLKWWt3CRwMSlJQy1wNYg+HFUONtUR7spbsKTzvxykTlsJC/dL2nqT+n/OaiPnu+DJ6pT8fO/UcqLxuwrqlyjATNjKmBDwmpJJ/NC6Wmtkw9L5l9krCODIqvQGP/Pqty05L7Ujr+EpIqSj4lReD6NCg71Po8P/v/kSn937tAlVFGyGmQ4aXnX/KOQJF8dZDd7npRexoVFjgWqVBkJE9jEXpZ5pcsurK/Tgbia/wxvr1UC+0BOnz4RWVmMFPI/; 4:zlyBWsmJg6xq6QLKfGfDps2dvIsKHtUJJs2Mw+VSw9qqmypyv9t2keZb2KS2oa0bgc/P667u6pl6DCF4YdttNOOKz3hN73f7KCqqgQYX2C7mFkYmDxJflTDjMyEBmpn3bx4CRqlGmmrCyYxGrY+6hPOolmiRTU3tjX06IzgwLC92I+kbr98/3roVwE974BJLqW0izO6DQX/qKRHBeTorZOuhwS+W264C6w6vZJ0yGawVV26v2aNmDJ9d34cjDa3sTpQuo9nyFXALiL5mlXnncFoPC38eiz9ubAoPhof5ayLbIvrNzQbuOoGYBSnRf16FH+DllYKUGm56e/DDfFrrZC4qHIvve4I4D9jTwXbL3iU= 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)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231220)(944501244)(52105095)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:DB6PR0402MB2773; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0402MB2773; X-Forefront-PRVS: 06098A2863 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(396003)(39380400002)(39860400002)(376002)(366004)(346002)(189003)(199004)(5660300001)(186003)(16526019)(26005)(47776003)(8676002)(66066001)(8936002)(81156014)(81166006)(6916009)(2950100002)(2906002)(36756003)(2361001)(2351001)(86362001)(6512007)(50226002)(52116002)(51416003)(76176011)(97736004)(6486002)(25786009)(6116002)(68736007)(4326008)(7736002)(6506007)(386003)(478600001)(305945005)(106356001)(53936002)(50466002)(1076002)(59450400001)(16586007)(3846002)(316002)(105586002)(5009440100003)(48376002)(6666003)(55236004)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0402MB2773; 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; DB6PR0402MB2773; 23:5es2xY0yjqb7+eZzChfW03uaC0xoSYoSxbgUFeB?= =?us-ascii?Q?vyZvBpKVwWph2neYngvPhxjjdam128KZtY92QDpPC0zrlZDQKaofF+awoyXg?= =?us-ascii?Q?VQz3RilDEVQukR+1M7JoyQ1EF5vtdAb9d4I5XiJWYgDlJNFRhcnitazKMph0?= =?us-ascii?Q?NTnNbp6EZ1UhuU3YHMdNiPq0baVLpdpNnKsu5p6ILZU6J7V7dq7cb53i/FsN?= =?us-ascii?Q?rbMUOrw2V2KBRX0KNKQRw17ctqxTWqcYo+5f1z0n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=; 7:vF0rSNVpvsZy5/ByyDpZlgRpqlTgBLcBAPlkJSHMna9fOg0Fd2Nzv6svSBFzYkmYWfOx6PrA+cR2YlRkOCrel9EjjmDsdFUe4k20kM75XGnCDC7e6YdROKJ27+mDexYvoQ6Mj6SvpYrCG8DAcrid7q/1Wour2oT/DhzK6hCmzSuxHJQfjfd7UUtqgc7Z3qJf6qGtUiluD0Ykdl4L86mbj9HbNkEDs1JMxs4H1TZo4dlEh3GeUhgqoP415QmWSMq/ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2018 09:11:15.9734 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ccb5a67-0b95-4168-9766-08d587f9369f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2773 Subject: [dpdk-dev] [PATCH 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, 12 Mar 2018 09:11:19 -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") Cc: pablo.de.lara.guarch@intel.com Fixes: 7f0034275a24 ("cryptodev: remove digest length from crypto op") Cc: pablo.de.lara.guarch@intel.com Signed-off-by: Shreyansh Jain --- 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