From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id BCA96C656 for ; Wed, 15 Jun 2016 16:05:21 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 15 Jun 2016 07:05:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,476,1459839600"; d="scan'208";a="828584213" Received: from sie-lab-212-116.ir.intel.com (HELO silpixa00378492.ir.intel.com) ([10.237.212.116]) by orsmga003.jf.intel.com with ESMTP; 15 Jun 2016 07:05:09 -0700 From: Pablo de Lara To: dev@dpdk.org Cc: Pablo de Lara Date: Wed, 15 Jun 2016 15:11:18 +0100 Message-Id: <1465999880-24438-3-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1465999880-24438-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1465995709-32278-1-git-send-email-pablo.de.lara.guarch@intel.com> <1465999880-24438-1-git-send-email-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 2/4] test: fix compilation when RTE_APP_TEST_DEBUG was set X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2016 14:05:22 -0000 Compilation error: app/test/test_cryptodev.c: In function ‘create_gcm_operation’: app/test/test_cryptodev.c:3619:18: error: ‘struct rte_crypto_op’ has no member named ‘digest’ ut_params->op->digest.data, ^ app/test/test_cryptodev.c:3620:18: error: ‘struct rte_crypto_op’ has no member named ‘digest’ ut_params->op->digest.length); ^ app/test/test_cryptodev.c:3662:41: error: ‘struct rte_crypto_op’ has no member named ‘iv’ rte_hexdump(stdout, "iv:", ut_params->op->iv.data, iv_pad_len); ^ app/test/test_cryptodev.c:3664:17: error: ‘struct rte_crypto_op’ has no member named ‘additional_auth’ ut_params->op->additional_auth.data, aad_len); Fixes: eec136f3c54fc ("aesni_gcm: add driver for AES-GCM crypto operations") Signed-off-by: Pablo de Lara --- app/test/test_cryptodev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index c5b5fb3..5674534 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -2404,8 +2404,8 @@ create_gcm_operation(enum rte_crypto_cipher_operation op, rte_memcpy(sym_op->auth.digest.data, auth_tag, auth_tag_len); #ifdef RTE_APP_TEST_DEBUG rte_hexdump(stdout, "digest:", - ut_params->op->digest.data, - ut_params->op->digest.length); + sym_op->auth.digest.data, + sym_op->auth.digest.length); #endif } @@ -2447,9 +2447,9 @@ create_gcm_operation(enum rte_crypto_cipher_operation op, rte_memcpy(sym_op->auth.aad.data, aad, aad_len); #ifdef RTE_APP_TEST_DEBUG - rte_hexdump(stdout, "iv:", ut_params->op->iv.data, iv_pad_len); + rte_hexdump(stdout, "iv:", sym_op->cipher.iv.data, iv_pad_len); rte_hexdump(stdout, "aad:", - ut_params->op->additional_auth.data, aad_len); + sym_op->auth.aad.data, aad_len); #endif sym_op->cipher.data.length = data_len; sym_op->cipher.data.offset = aad_buffer_len + iv_pad_len; -- 2.5.0