From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0056.outbound.protection.outlook.com [104.47.2.56]) by dpdk.org (Postfix) with ESMTP id B3D1D5F67 for ; Tue, 13 Mar 2018 06:30:43 +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=OgcRAE07xX/hWaf4bMJ/IH7KUXdBSJeLul0S8V19pI4=; b=PpTWe5fzfehFmRXW5M5qXx6JzAkQLT/e9L5cErq93iN9xB5ijOrhwa4zdscqBEfxo7j3thKQZbYWHeNkWFhHIKB120XvUa2Fql9W+MihI2u/Z8Xh5tn+FVJAA3x7t9RCONncQu2JgA55snDYN5z+44glv5KraHusmVxOdztnWgw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from localhost.localdomain (14.142.187.166) by AM5PR0402MB2770.eurprd04.prod.outlook.com (2603:10a6:203:98::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.14; Tue, 13 Mar 2018 05:30:39 +0000 From: Shreyansh Jain To: ferruh.yigit@intel.com Cc: dev@dpdk.org, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, akhil.goyal@nxp.com, Shreyansh Jain , pablo.de.lara.guarch@intel.com Date: Tue, 13 Mar 2018 11:14:30 +0530 Message-Id: <20180313054431.19556-7-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180313054431.19556-1-shreyansh.jain@nxp.com> References: <20180312092547.18472-1-shreyansh.jain@nxp.com> <20180313054431.19556-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: SG2PR0401CA0018.apcprd04.prod.outlook.com (2603:1096:3:1::28) To AM5PR0402MB2770.eurprd04.prod.outlook.com (2603:10a6:203:98::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cfee8914-8eb8-4f6f-ae7d-08d588a39036 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM5PR0402MB2770; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0402MB2770; 3:0wZRnxzhpzeL9c2H02Suv6nCtxtJIWxIlNj0MsvEkgcDLoDG5KbZBsXn1it+LsqpZNVMvPpab6I6+ym/t13ZQ6JroalbdQUNP1YITYDl/FW2Ahp++6qj1xDoDJYtygXVrEFfZT0lwfXymLFPRiwrsbj4mAFnBSAUISktry9esbtWL9Pdazxpk3cuDCEMyw8fBt21HQSVgt8J06bfOXDBHA6MEJWoRCXJxFJob8JmgvNBWcIzDcbRinyL8Mzef88S; 25:PCSFqz+yG4nKx6wHk1rxkOezFS7uEHeW8fzc3DGBF3FC+Kh/nKnyXgRBqPF7ZZJJ5HjKfTIye1sFJ8Zp9Lqf4Joc4s+/1vTb+6drOZsrI3HJ7QbFgWJgsAxI02KOfNKIPKujx1TID35QJ6meoOrj1ha3p6zJ68uKhqOL92CfFmGTEHQMGyba4bJ1+dpnWmnHx5ZQCkE8VwY7UE6X9i+cAo0RSeA5fF5l7AR+1AstQqyZ4VNwVhHX4AdwG4GBGuCksH6Lw50Pp5LFg7G6bvQHgQp1Q8ZoeG8KLyUgAXnZLguf8cUcGYKj4DtSzDYRnT/RGl90cPqwLMofZIk5OPTfFw==; 31:BV+NjeaT9SsKSElzMHcvcZv5it5z680lDs90JSD4Z3NKcRTEKPStmugK+57rz2tsuKqX/DJ0rqyh3TzD52ciLhbESWeJV2J7wcLDVDxyukPC5/4xvyVQPIV73w/2tZFUnfxLd6QHqxSyZDTo7MilAYchDzzn+3kphrLdn0t14U1sLAsNcB510/xMwkXFcP/rnrSG0YXP59ySlAxEawIR7LOlBHPgMO4m9aipG7bQDws= X-MS-TrafficTypeDiagnostic: AM5PR0402MB2770: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0402MB2770; 20:7k8agbHHDK8fQulk/n3bU9mo3HDkIzCg+EYj1Awj7ycXFp3sniL1IoOZigro8r3hQEDeLADsCbQsOCyL7XFdcO7OBDKxyTJAUwUc3nOs635Gs2LcYaIpP2kRc7r90aUbi0ZFjmgtNvo06neS0ftSNrXDDJebDJ+FtI3W3mLvOguIiXbAXiJHS3NK2UJiePitGPf6qjW9tgMJ3q0PWlvpZKJWvfORvY5orvHnP8bUWUN3lBjCssMZsA5J/yp7KedQgDg8wTb5A3l28Y3LHmypZhhx1opN/uSJ1v8JnTs7tC+LdmScYJiwRjvKLx0s11tA8llasgkQ5eJeSHRo7mtPBHvRM+JHTwnEvCzrrSa1yxncwiYq/SjidmYDAUkZANGDk93XBoQsHON8uUnT4e56o2zzaRir2/XFZjJBY7l2f/lMGubByL73iuO0g+DcxqFwe2hCd4Gf4DqmwrZJZleLI1oODYdbZkwN8OIeb0Oe2hoAoNvUE75Uyy8ND/pYEbxp; 4:gJYpD5vqTG+WXBF3dqmnVmesEk8IrIAH4U18wa0OdkncPQx4Ni13qnfVHhEFTNhyiJtVcynw1/NqNbGX10ueuYVTlS4hd7Qn1UL38hZWKZvtEDnoCfyFVytmpMSe0n5Gv8RqZVx0A2R1WYk012UzhQeiW6ybmHYE5MGfHnLJ7pcxpWXPuJZQbwzDbV0olJem74wV8g+IP9WtFAjTwkWO5jQsBNwbhS4/kupiDJSIDB9XXHgcmR9UuHkMpAc+UFXxzwVyf5g0KMS837B+/bW60mid4ex/RdUE8msD6Cr1Y1dWf3TOwrHJ1q5RN+CXzq6CegCPb6SlsFzas9qgu68EjvO8CsIHMCny/sERggr33Rc= 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)(944501244)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM5PR0402MB2770; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0402MB2770; X-Forefront-PRVS: 0610D16BBE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(366004)(376002)(39380400002)(396003)(39860400002)(346002)(189003)(199004)(6512007)(68736007)(55236004)(2351001)(386003)(6506007)(66066001)(6486002)(97736004)(48376002)(7736002)(25786009)(26005)(5660300001)(4326008)(50226002)(8936002)(16586007)(47776003)(106356001)(50466002)(2361001)(8676002)(316002)(305945005)(81166006)(5009440100003)(81156014)(3846002)(6116002)(16526019)(53936002)(86362001)(6666003)(105586002)(36756003)(1076002)(6916009)(186003)(2950100002)(59450400001)(2906002)(51416003)(52116002)(478600001)(76176011)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0402MB2770; 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; AM5PR0402MB2770; 23:BE6VIM2MBtW7tUZVVg8TQaYE/0f1YffbPACPJnx?= =?us-ascii?Q?GJ5k9rHnvxFzCaR8NXRIjP9be/6G7orgvpLub00H+tDPe040WwoGOEdWdMLY?= =?us-ascii?Q?dv67/5SAQvHPQ0fBCQHKyvtwbW0pKP7vrw5QdqlQzl1U0CQ57xbDn8E9qp/1?= =?us-ascii?Q?LMPX+PNrD2Q143tknul/aM9m2E4CHI7BeU8DxXvwpg/Lrd9ufD0VkK0DEqLW?= =?us-ascii?Q?IL32bf4arAfwQOT/CbCdE8sOY8LwHpYr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IRIGjCPjzI8gGn0=; 7:k8t+LtlgOT5OGDZhcUk3FJ6RscYSCdKyGWNQ6Xu8lyVxn1jmZ6kSUckaXaNafjMKudhh7QUeeocUwh5g1etBSwfgK81jT9jZ3VPhJsDnxkcH6NVQI23p6mLqGO6rcJNNeE/vZ53KNRRwbiu7/u2XQWG2ZVjSBrnr3/X/RvX8nQTRN6X94BplZaPP753xriRr/yq2B89y/iYP/EhtrMBE1wImky49/USfUyI6z2alRhUDqoH0ZYsNXy17JUDQsEFp SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2018 05:30:39.9123 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cfee8914-8eb8-4f6f-ae7d-08d588a39036 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0402MB2770 Subject: [dpdk-dev] [RESEND v2 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: Tue, 13 Mar 2018 05:30:44 -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 --- 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