From patchwork Wed Feb 17 19:37:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 62131 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp191075lbl; Wed, 17 Feb 2016 11:46:57 -0800 (PST) X-Received: by 10.55.26.39 with SMTP id a39mr4160359qka.98.1455737956899; Wed, 17 Feb 2016 11:39:16 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b75si2771780qhb.42.2016.02.17.11.39.16; Wed, 17 Feb 2016 11:39:16 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 73B8666756; Wed, 17 Feb 2016 19:39:16 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=jZu/XqZZ; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 D9BDC616C1; Wed, 17 Feb 2016 19:37: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 675D666751; Wed, 17 Feb 2016 19:37:46 +0000 (UTC) Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) by lists.linaro.org (Postfix) with ESMTPS id CE26E616CA for ; Wed, 17 Feb 2016 19:37:44 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id wb13so31186408obb.1 for ; Wed, 17 Feb 2016 11:37:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/xDaTn9v3LxLF6V9IXFikVxtxnH59hJ1OCGXMmRcPYI=; b=jZu/XqZZe/3PMW/6XIy4rhhYj+orqpvVqVMr9W+yBu9qo0tlyvbRb6gHD2YPLcMSMa hrclB+jeGfV1fvqk94QMSJq4H5DkLa0e8zkPUoz//WGUzuwRgbcHWinX0vbWybWBGjun 3p9i3Zl2Krl5CXkBkmtRaaJoYa+onM/QDhd8k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/xDaTn9v3LxLF6V9IXFikVxtxnH59hJ1OCGXMmRcPYI=; b=RbWyHRZjurpaWQVsmKPA80i4HKJ5s8sl7XZUnJAOlq3Lwc/OUo7aJlFpXc7ehB7UiE QulW3Fzfaa88UoHrDCsSutpaT9FO16QyLpt2pokZestedWUs2wANaEnbGslCHIYeU92V YEkxuHojW4YlsyVNEVlv+I4q7MYvWPWB+djazTJzmg0wE8V2MM/5M+wO6MuHIlcDXNux LpwUHWh7GzDMYq0wB50N+IU5apN4UJUr+fMhg+7MiP+A8PWY97joYrcVD3mMYwJOuJYa PQf7UitsveoSkZ9mHpXQUi01l2jQL8Dav8hUiaJrAjI5AEuCNEOiHiuhwBFKtlDMXtZF ng8Q== X-Gm-Message-State: AG10YORo2cFyoNxpmRPziFDC2s9mPlDka07OM2VWsoiSwjyH788KkFSAHmDbADPkBj8/2egXww0= X-Received: by 10.60.58.6 with SMTP id m6mr2644419oeq.47.1455737864418; Wed, 17 Feb 2016 11:37:44 -0800 (PST) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id b190sm1532169oig.18.2016.02.17.11.37.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Feb 2016 11:37:44 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 17 Feb 2016 13:37:23 -0600 Message-Id: <1455737843-4588-4-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455737843-4588-1-git-send-email-bill.fischofer@linaro.org> References: <1455737843-4588-1-git-send-email-bill.fischofer@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [API-NEXT PATCH 4/4] validation: crypto: add unit test for odp_crypto_capability() 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Bill Fischofer --- test/validation/crypto/crypto.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/validation/crypto/crypto.c b/test/validation/crypto/crypto.c index b6d06b6..8f4ce87 100644 --- a/test/validation/crypto/crypto.c +++ b/test/validation/crypto/crypto.c @@ -26,6 +26,8 @@ int crypto_init(void) odp_pool_param_t params; odp_pool_t pool; odp_queue_t out_queue; + odp_crypto_capability_t capability; + int rc; if (0 != odp_init_global(NULL, NULL)) { fprintf(stderr, "error: odp_init_global() failed.\n"); @@ -36,6 +38,12 @@ int crypto_init(void) return -1; } + rc = odp_crypto_capability(&capability); + if (rc != 0) { + fprintf(stderr, "error: unable to get crypto capabilities.\n"); + return -1; + } + odp_pool_param_init(¶ms); params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE; params.pkt.len = SHM_PKT_POOL_BUF_SIZE;