From patchwork Wed Dec 20 22:00:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 122499 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp62855qgn; Wed, 20 Dec 2017 14:00:48 -0800 (PST) X-Google-Smtp-Source: ACJfBova488ywoqMuB5RDtobqX2cKgYNkvpPmXz2KLgDYy7S3l4QD8OaTeQCzBTcP8t85HOMKfYe X-Received: by 10.55.158.6 with SMTP id h6mr12788098qke.245.1513807247861; Wed, 20 Dec 2017 14:00:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513807247; cv=none; d=google.com; s=arc-20160816; b=Or9D65d82WulvCCCwMosP+ABpVA67FNdQ4oypnRkDfleG6eMjVNVB+TAYUB4S2QTMw 7AkLMUii8zzSHTk///TPMWSR4qlvXitgJACKQzpL2PKktk2IbAcWshO5+T9W+shhsU2+ NFZrbBSXBb3xB98BVsfYYXZQhOm+IdKFgla0MMWbQ87rEdkgauaWeTE5B2WfKKZzBRKX BtUc975Ty95VtY2DuFBhIlZSB0VeLGFAKdyU2JHnhTN68LFiYz8FChr5UdoA3QifFnwS 4ea4OZNrB2Xdn4DHExyX0G/OmirxH8uyWUwq74h+GhiFV5bMqNvSQ7ftzP/he5u8Pa0R bTNw== 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:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=KSO0JHcrfKY9U9rzN3/eSEs8dJwSBT7za37l0MMq28A=; b=RpqW3unZ9df+Z8yMG2oVaiO4kRubXwk5bPkV22v0861bnPZtMMOoq4gpalBubxbwQZ PkCsFrGMSrF451rtzvVgpveplmzkjNAAZe8XZ4WPQnrS/djyzEQgyM5+6hi62BucLzus acrF2SfhnMpHY05xpAATxDtOvZfhMhCLLOSgmoPDLnB46g8Wrs3CcAEwIDfPmnA11xQm 6F59SszeKvKgd5hqRCzdDlr4GZ2xRmRA0QPEjAzkRreSOookH6SqZtnd16HA6dNyaeIW Yqj+cKZDokxeChkf9uTN0nnI2/IFPhuKdT23kALkqIX9ZrVZaXIZAkEHYzZXeMVbeGCY aoiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id v8si2059867qka.435.2017.12.20.14.00.47; Wed, 20 Dec 2017 14:00:47 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 604BB60916; Wed, 20 Dec 2017 22:00:47 +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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 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 1F14B60907; Wed, 20 Dec 2017 22:00:19 +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 59DFA608A4; Wed, 20 Dec 2017 22:00:15 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id 8D2A1608A4 for ; Wed, 20 Dec 2017 22:00:13 +0000 (UTC) Received: from mxback10j.mail.yandex.net (mxback10j.mail.yandex.net [IPv6:2a02:6b8:0:1619::113]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 253352A22801 for ; Thu, 21 Dec 2017 01:00:12 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback10j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id cQtooqEnry-0CTqSdcg; Thu, 21 Dec 2017 01:00:12 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id qjaiYOcsHH-0Bw4sONE; Thu, 21 Dec 2017 01:00:11 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 21 Dec 2017 01:00:09 +0300 Message-Id: <1513807210-15376-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513807210-15376-1-git-send-email-odpbot@yandex.ru> References: <1513807210-15376-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 355 Subject: [lng-odp] [PATCH API-NEXT v1 1/2] linux-gen: crypto: populate sync/async_mode caps 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" From: Dmitry Eremin-Solenikov Report to application that crypto module supports packet operation in both sync and async modes. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 355 (lumag:crypto-modes-caps) ** https://github.com/Linaro/odp/pull/355 ** Patch: https://github.com/Linaro/odp/pull/355.patch ** Base sha: f2a1a84b43642f3d0911a351d9308d5501693290 ** Merge commit sha: 993c22bbf65ef0688c2bc8064173c967fde07571 **/ platform/linux-generic/odp_crypto.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index b9cc21a15..ffff14ecd 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -722,6 +722,9 @@ int odp_crypto_capability(odp_crypto_capability_t *capa) /* Initialize crypto capability structure */ memset(capa, 0, sizeof(odp_crypto_capability_t)); + capa->sync_mode = ODP_SUPPORT_PREFERRED; + capa->async_mode = ODP_SUPPORT_YES; + capa->ciphers.bit.null = 1; capa->ciphers.bit.trides_cbc = 1; capa->ciphers.bit.aes_cbc = 1; From patchwork Wed Dec 20 22:00:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 122500 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp63548qgn; Wed, 20 Dec 2017 14:01:17 -0800 (PST) X-Google-Smtp-Source: ACJfBovuegzeyw9wpiuQJ/Q3P8Z7+Fti0Lq/QU6GwXPS9bLcUJYFNIn9X7MSkMwOGEHXEVSqsqML X-Received: by 10.200.7.65 with SMTP id k1mr12118611qth.123.1513807277294; Wed, 20 Dec 2017 14:01:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513807277; cv=none; d=google.com; s=arc-20160816; b=F0DzYCc8gZ7HZH3wcs9hSI7Ys8SRIUMWRgeG2nYmNj8RqN2KfbXdPMo167MlwTw8NL WBqFUSkVzTYFciCujTPbj6dSTZX6xBgEIlVfEe1CgNHwcWukQJ+KxgQYmbGuqWjjcQvS FoX6xIthF95oDtG2fFFbDNf1i7EW3vGg6rGNbAPIANpikx60TCLdJES9S6+ZkiehkhuZ /mgNv8dORmg+h5jiy9I34dqSIgq0g099oqz1ViRhBTrSiefiQu3EbvP0HZIYVqpvIaLK OvJRvQPZSIAiKYMj+jOSZXTI0dieDTaOENKTc/BeLc2RMlt9+xwaetwjIciL0F/eKKFx 4jkA== 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:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=z5SU2/AlhZ79SmRQKo6uK1zUbfFH7grzOcRvNQgQmS4=; b=u1Bi21i68/F8jKdgpFw0MXzEsyqhySkoRMckCRBC+u1TfeD0rdLWn6t/0IRwyIE5ix WpO8LlDz8hC0Dkkh0piA7OxAmZSPLPh9GT7WmUDJEHLmlimzARPjLhNxGTmfk04VYJAZ pVqv/MxJkaNPEX/DxrIBV8mhhe1ldDXMhVc3DxqYp8YZcoN+wOunG1vIhxwtW2FyhTWI ISxYg5bRmts47DisbTS02mnu+h0e6xQRQZHsumbaUqIifijriW//iJ+642oIZk2sxuPX uRw1zkKLDu3PNxEj399H3yBejGT19tv6Us6seJUTbept8eDWq5YGj9uVkA9kPEq1dVbH daLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id d14si1541058qtg.207.2017.12.20.14.01.14; Wed, 20 Dec 2017 14:01:17 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id E7D1360922; Wed, 20 Dec 2017 22:01:13 +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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 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 71F7560940; Wed, 20 Dec 2017 22:00:23 +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 B6FCE608A4; Wed, 20 Dec 2017 22:00:15 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 29209608EC for ; Wed, 20 Dec 2017 22:00:14 +0000 (UTC) Received: from mxback14j.mail.yandex.net (mxback14j.mail.yandex.net [IPv6:2a02:6b8:0:1619::90]) by forward100p.mail.yandex.net (Yandex) with ESMTP id B0F2851023A8 for ; Thu, 21 Dec 2017 01:00:12 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback14j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id XXB67Gqyag-0CNmIYKR; Thu, 21 Dec 2017 01:00:12 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id qjaiYOcsHH-0CwqC9f5; Thu, 21 Dec 2017 01:00:12 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 21 Dec 2017 01:00:10 +0300 Message-Id: <1513807210-15376-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513807210-15376-1-git-send-email-odpbot@yandex.ru> References: <1513807210-15376-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 355 Subject: [lng-odp] [PATCH API-NEXT v1 2/2] validation: crypto: do not run tests if mode is not supported 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" From: Dmitry Eremin-Solenikov Do not run packet tests if corresponding packet-mode operation is not supported by the platform. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 355 (lumag:crypto-modes-caps) ** https://github.com/Linaro/odp/pull/355 ** Patch: https://github.com/Linaro/odp/pull/355.patch ** Base sha: f2a1a84b43642f3d0911a351d9308d5501693290 ** Merge commit sha: 993c22bbf65ef0688c2bc8064173c967fde07571 **/ test/validation/api/crypto/odp_crypto_test_inp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c index cba472ded..77fd49954 100644 --- a/test/validation/api/crypto/odp_crypto_test_inp.c +++ b/test/validation/api/crypto/odp_crypto_test_inp.c @@ -533,6 +533,15 @@ static int check_alg_support(odp_cipher_alg_t cipher, odp_auth_alg_t auth) if (odp_crypto_capability(&capability)) return ODP_TEST_INACTIVE; + if (suite_context.packet) { + if (suite_context.op_mode == ODP_CRYPTO_SYNC && + capability.sync_mode == ODP_SUPPORT_NO) + return ODP_TEST_INACTIVE; + if (suite_context.op_mode == ODP_CRYPTO_ASYNC && + capability.async_mode == ODP_SUPPORT_NO) + return ODP_TEST_INACTIVE; + } + /* Cipher algorithms */ switch (cipher) { case ODP_CIPHER_ALG_NULL: