From patchwork Thu Jun 1 08:22:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 100823 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp696228qge; Thu, 1 Jun 2017 01:30:06 -0700 (PDT) X-Received: by 10.55.23.1 with SMTP id i1mr277826qkh.67.1496305790188; Thu, 01 Jun 2017 01:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496305790; cv=none; d=google.com; s=arc-20160816; b=C2d2ThdX4lZ9vmanD1VW2NiCroxbaEHG3MEMg9jb3cLsTGbYlie7U821DdPk9sKTc8 Jkptm6kchhd4yDXmrlXYb1jQvmmPUWM9DCCAkjncSoo4Biu4WAGApqMbpvrB/mfffzqW cSrCW6+LIaF0gKkUA+cGUsWXiWjwdMs3fVctaTxXMFGCJgcPI6bVdRY3Uzz8ui/AX0Jv s1D5DkPAUSgrIlszG0BgJHjJwKHHaMru5817XUyx8N5dKxhg5/DOOhd2atnpxK6CUmxI ea8wnXai/iZ4OwIKTCQWNT2vpGu5Ltp8MAGD9XFGJ96iKVDXK0Mgc5eZ6d/z4jeYW17i wJjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:delivered-to:arc-authentication-results; bh=iFqBWbF7POfbw/sKeAW2FM6TTPlMhW9ASbp+PHNxqlQ=; b=UvGzYwPJXAQGVQketW8hONAuARbb6ZYdjrmyLXd8TOmOvy5gd73ibmN4hanKMpJKDu Fwhldd9l3sHblzdPFLdoGrc4wqNkgk8c5fjC2plMjLmeI/7P+HVVb1KKF4EAvBXsKhMF XTsTBVyU1cGKUZUDBOM2Mt3Xwugd9PAuLUqrBmSIO6BiaDdGBLZTj9ubDc1XFybY7Js+ D/gfMnKG1bd8o8maIU8jsGz5kHEDkie3oK65oH7L7blm1mpDgH2ZDIo5wUG6dvklL0Mk H3DeQvR8bKU4STtKrtNHfZIBCdqyfBUqHs+TdmNt4tMbwXHCF0jm5AiFh8Aa+WXn4H8x +bag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t66si18782379qkf.279.2017.06.01.01.29.49; Thu, 01 Jun 2017 01:29:50 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id C36F460A1A; Thu, 1 Jun 2017 08:29:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 850E160C10; Thu, 1 Jun 2017 08:24:39 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 6D7BE60BE9; Thu, 1 Jun 2017 08:24:29 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by lists.linaro.org (Postfix) with ESMTPS id 7115860BF0 for ; Thu, 1 Jun 2017 08:23:29 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id c184so17268088lfe.2 for ; Thu, 01 Jun 2017 01:23:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=iFqBWbF7POfbw/sKeAW2FM6TTPlMhW9ASbp+PHNxqlQ=; b=LUqptJshfFt4OrPlJ3Sp81Fnpyo+StylJ6WVCjWUkQTaDFqiOuZ9XGBD8hwiQiAD8T y0dFpDAHCPEpd8jjB/xfJ9T3fRLkgIwweV3rFldgthxkui7Nv2WsVnp4TnGgA1oya6Yc +Mj2V/FhvsUYntb/xHG8oZgZAqwiV33srq59qCRbgdpNUfVKyAaoEqPfvMHMHsweBi92 5snq0cCEnGNfFuIx2eVmdlVo+45Y+zKt2KEEZJa5UXk+6bAz9tQaoSztFULYccmt+2HV JchejHFPHGk5P8xafPylh8FUveoqfp1r7aHTPzSrajit/z/AFoS6h4npBoeUVFivW21O mEzw== X-Gm-Message-State: AODbwcD6SUBudmsBFh3lDxAIeTEig31b+mSGglIpPodLpOPQQUMwl4QE +xGA9k/e6DKP60Rz53TSnFZK X-Received: by 10.25.221.155 with SMTP id w27mr136906lfi.72.1496305408147; Thu, 01 Jun 2017 01:23:28 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([188.162.64.12]) by smtp.gmail.com with ESMTPSA id c78sm4185837lfh.25.2017.06.01.01.23.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2017 01:23:27 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Thu, 1 Jun 2017 11:22:45 +0300 Message-Id: <20170601082320.4673-6-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170601082320.4673-1-dmitry.ereminsolenikov@linaro.org> References: <20170601082320.4673-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [PATCH API-NEXT v4 03/23] test: odp_crypto: update performance test to set auth_digest_length X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Dmitry Eremin-Solenikov --- test/common_plat/performance/odp_crypto.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) -- 2.11.0 diff --git a/test/common_plat/performance/odp_crypto.c b/test/common_plat/performance/odp_crypto.c index b3857973eee7..b1ed6743e6e5 100644 --- a/test/common_plat/performance/odp_crypto.c +++ b/test/common_plat/performance/odp_crypto.c @@ -50,7 +50,6 @@ static uint8_t test_key24[24] = { 0x01, 0x02, 0x03, 0x04, 0x05, typedef struct { const char *name; /**< Algorithm name */ odp_crypto_session_param_t session; /**< Prefilled crypto session params */ - unsigned int hash_adjust; /**< Size of hash */ } crypto_alg_config_t; /** @@ -209,9 +208,9 @@ static crypto_alg_config_t algs_config[] = { .auth_key = { .data = test_key16, .length = sizeof(test_key16) - } + }, + .auth_digest_len = 12, }, - .hash_adjust = 12 }, { .name = "null-hmac-md5-96", @@ -221,9 +220,9 @@ static crypto_alg_config_t algs_config[] = { .auth_key = { .data = test_key16, .length = sizeof(test_key16) - } + }, + .auth_digest_len = 12, }, - .hash_adjust = 12 }, }; @@ -578,7 +577,7 @@ run_measure_one(crypto_args_t *cargs, mem = odp_packet_data(params.out_pkt); print_mem("Immediately encrypted packet", mem, payload_length + - config->hash_adjust); + config->session.auth_digest_len); } if (!cargs->in_place) { if (cargs->reuse_packet) { @@ -611,7 +610,7 @@ run_measure_one(crypto_args_t *cargs, print_mem("Receieved encrypted packet", mem, payload_length + - config->hash_adjust); + config->session.auth_digest_len); } if (cargs->reuse_packet) { params.pkt = out_pkt;