From patchwork Thu Jun 1 09:03:19 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: 100839 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp706302qge; Thu, 1 Jun 2017 02:05:12 -0700 (PDT) X-Received: by 10.237.58.227 with SMTP id o90mr430464qte.134.1496307912304; Thu, 01 Jun 2017 02:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496307912; cv=none; d=google.com; s=arc-20160816; b=fSsAzTEh2I4PSHh5wMBqkhyR21EHgJGxkIet78BxK7yJ6LN1DNJPoWTM8VmuCpmvj5 HOAfu3+7dkmr18y/CGEUuE2d8JQazbP1e4kocSIt6pmQQcBhaya66j1JMWlBmctO6pBh JAw0ra26K+3910qDPFO2SsEmC0ABGhpHIGmtpFDzl1Qtd13TuFhPmZGwHAdDlNo6rKRv cwP2YHpWKv6369AxwwrbHcVfcIQIbLYG3SW/eXDZkz/xyvt6a8AkAOxVHTBq+PiNhmrk D2WrZ8exxX9j2xY2DVIYvDSeY0zYeAJKMPTUh+eb6MhQSrCQjlKbxKi6tDbn4/X+TEPJ c8Ew== 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=Gte8Y+rPes6+swlSI9CSBbep5K7oiIGvbEwu16bzhc4=; b=y2KxtUrcj1NTAP4ISB6BWWoLjbQCQQuH3xy6afDm93AqxQ+YkV7pOpVpCN7cuI+oTp sOn0Fn1KbyyTvZm2iB3Fp+TttyADed58YKuRDzSUFzGpwGG2M46cWQ7WPV22qSLp54N+ E1QTdMcMrW5P9cTN7NnB2ODtID2kcG6TU7eWykQ0FiGyvW28hdC4AO8DYytZSABcXEwM qp+CxZbGYSo7wegOblq/opUK6GC1Ahn1mPKac/45cGtPty0wDXbI3d/TcR1unWf3TBtR dB/uBqpI4NG2uJlj04zFON6qTYZnNh9+ox+ChgXwHOnbDYXXaXzGGjZWAxuDQr8RUrKs 4R0w== 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 l2si2038667qti.106.2017.06.01.02.05.11; Thu, 01 Jun 2017 02:05:12 -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 D460060D74; Thu, 1 Jun 2017 09:05:11 +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 C6EF2609DC; Thu, 1 Jun 2017 09:03:52 +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 056E2608DD; Thu, 1 Jun 2017 09:03:49 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by lists.linaro.org (Postfix) with ESMTPS id A7AED607F1 for ; Thu, 1 Jun 2017 09:03:46 +0000 (UTC) Received: by mail-lf0-f45.google.com with SMTP id a136so8032665lfa.0 for ; Thu, 01 Jun 2017 02:03:46 -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=Gte8Y+rPes6+swlSI9CSBbep5K7oiIGvbEwu16bzhc4=; b=eauM2hQ37Dt1+zZ7EzAjUZ1kUWE4PoAM8h1n//ebEIp1xzy4mAdJLdhf2qCWvb8+ah ZnQyBFKZqblCTYbSbihqcI2kMbiFS2zrrTTKYGU6QcaBNEatiZ7tJZNgycJAEO6wSq5s tvSxIPaYQ8Do7OL/JKjAvwgVfO5VwmEx9dvUPb4eCTk8tU99uEvlvZ5TqeoqKLI1t2vD hCOWwNTcT/td1/lPrtOW6aH6KwNLjmaFg/nq8dv4qIYT2WMOfgJ+Tkvnczfff2QtmWno Hv8VL3ZP+qaU73GE03t0Gl5ZBIg0MyUQ35/gv6GldZ00f35CiPextv4vTebobKk19Yvh n3tQ== X-Gm-Message-State: AODbwcDCXszxsvLY4WVLzh+PujJ2qt2mf2UoF+pM0JBcvhZx015kTozg AcJ2puJ7oBb7ozQWWqB+YfQC X-Received: by 10.25.74.196 with SMTP id x187mr196041lfa.164.1496307825332; Thu, 01 Jun 2017 02:03:45 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([188.162.64.12]) by smtp.gmail.com with ESMTPSA id 129sm4232819ljf.36.2017.06.01.02.03.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2017 02:03:44 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Thu, 1 Jun 2017 12:03:19 +0300 Message-Id: <20170601090339.9313-4-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170601090339.9313-1-dmitry.ereminsolenikov@linaro.org> References: <20170601090339.9313-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [PATCH API-NEXT v5 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 | 14 +++++++------- 1 file changed, 7 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..6a58294a25ff 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,8 @@ 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;