From patchwork Sat Dec 13 12:48:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 42211 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 29E1921772 for ; Sat, 13 Dec 2014 12:48:30 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf6135016eek.8 for ; Sat, 13 Dec 2014 04:48:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=O1frQ+8991TQjrkxVTKPBBxnQu3oOePZ8F8mwMB8N1c=; b=cpOVY83sGukRqSlgsQx7vJHVKxCEEm7RdXPVK2Ee1IpugP3apFojOXXMSzUl4RvQ7+ WKffr5pbtzHUr/OVPyDNUuuV/secgQSt0p2c4pCp9ZtPC/oblH0EM9rREgt3lnP30P6e nwWa0GEqkCXUXuM8O82xyJgRr/OET4OtaK/B3rOJ4qmRRonvIhghuwLYR+p34t1a2u/w /tH8XQ0a3W07P2HVkEhca5EFPr/+XlDuaUrtmd0T7RbyVFXVWmL1tgt4uUD4G65uqz3y y+9jVWTFsYNl9DRgoZtLIHELk50ewQrNRlNxgQdBRlJHTxT0vKl9TArA1QIvHYiwb5dJ VIwA== X-Gm-Message-State: ALoCoQmFGU84J3F4Of3lUD0vAIatkLLL9pLGUX/eFiO/sPo7EvQ/8lqfY3nWg+yv9f5wUXDFDu9f X-Received: by 10.180.89.211 with SMTP id bq19mr1455591wib.4.1418474909321; Sat, 13 Dec 2014 04:48:29 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.39 with SMTP id kz7ls314679lab.25.gmail; Sat, 13 Dec 2014 04:48:29 -0800 (PST) X-Received: by 10.112.199.40 with SMTP id jh8mr20605165lbc.5.1418474909022; Sat, 13 Dec 2014 04:48:29 -0800 (PST) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id y9si4429424laj.5.2014.12.13.04.48.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 13 Dec 2014 04:48:28 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id f15so8015649lbj.9 for ; Sat, 13 Dec 2014 04:48:28 -0800 (PST) X-Received: by 10.152.45.41 with SMTP id j9mr20724314lam.59.1418474908827; Sat, 13 Dec 2014 04:48:28 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp247426lbb; Sat, 13 Dec 2014 04:48:28 -0800 (PST) X-Received: by 10.224.55.145 with SMTP id u17mr40073142qag.12.1418474907360; Sat, 13 Dec 2014 04:48:27 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 5si4806846qgy.68.2014.12.13.04.48.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 13 Dec 2014 04:48:27 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xzm7S-0002Ci-Dt; Sat, 13 Dec 2014 12:48:22 +0000 Received: from mail-la0-f50.google.com ([209.85.215.50]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xzm7M-0002Bz-46 for lng-odp@lists.linaro.org; Sat, 13 Dec 2014 12:48:16 +0000 Received: by mail-la0-f50.google.com with SMTP id pn19so7408518lab.37 for ; Sat, 13 Dec 2014 04:48:10 -0800 (PST) X-Received: by 10.112.168.97 with SMTP id zv1mr20807452lbb.6.1418474890283; Sat, 13 Dec 2014 04:48:10 -0800 (PST) Received: from localhost.localdomain ([80.77.38.170]) by mx.google.com with ESMTPSA id a1sm1142360lbi.11.2014.12.13.04.48.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 13 Dec 2014 04:48:09 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Sat, 13 Dec 2014 14:48:04 +0200 Message-Id: <1418474884-31440-1-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: crypto patch Subject: [lng-odp] [PATCH] validation: crypto: remove data offset workaround X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: taras.kondratiuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Current crypto tests calculate range offsets expecting a bug in crypto implementation: data offsets are applied relatively to a start of a buffer instead of start of data in a packet. This bug is fixed in linux-generic by recent buffer/packet rework patches, so all crypto tests fails now. Remove this workaround. Signed-off-by: Taras Kondratiuk --- This patch should be merged just after Bill's buffer/packet changes for v0.5. --- test/validation/crypto/odp_crypto_test_async_inp.c | 4 +--- test/validation/crypto/odp_crypto_test_sync_inp.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/test/validation/crypto/odp_crypto_test_async_inp.c b/test/validation/crypto/odp_crypto_test_async_inp.c index c140c0f..96d4c3f 100644 --- a/test/validation/crypto/odp_crypto_test_async_inp.c +++ b/test/validation/crypto/odp_crypto_test_async_inp.c @@ -67,9 +67,7 @@ static void alg_test(enum odp_crypto_op op, CU_ASSERT(pkt != ODP_PACKET_INVALID); uint8_t *data_addr = odp_packet_data(pkt); memcpy(data_addr, input_vec, input_vec_len); - /* offsets are relative to buffer address (not packet data) - until https://bugs.linaro.org/show_bug.cgi?id=387 is fixed */ - int data_off = data_addr - (uint8_t *)odp_buffer_addr(buf); + const int data_off = 0; /* Prepare input/output params */ odp_crypto_op_params_t op_params; diff --git a/test/validation/crypto/odp_crypto_test_sync_inp.c b/test/validation/crypto/odp_crypto_test_sync_inp.c index b63fd4d..f37ad54 100644 --- a/test/validation/crypto/odp_crypto_test_sync_inp.c +++ b/test/validation/crypto/odp_crypto_test_sync_inp.c @@ -56,9 +56,7 @@ static void alg_test(enum odp_crypto_op op, CU_ASSERT(pkt != ODP_PACKET_INVALID); uint8_t *data_addr = odp_packet_data(pkt); memcpy(data_addr, input_vec, input_vec_len); - /* offsets are relative to buffer address (not packet data) - until https://bugs.linaro.org/show_bug.cgi?id=387 is fixed */ - int data_off = data_addr - (uint8_t *)odp_buffer_addr(buf); + const int data_off = 0; /* Prepare input/output params */ odp_crypto_op_params_t op_params;