From patchwork Thu Feb 18 12:20:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 62168 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp553411lbl; Thu, 18 Feb 2016 04:21:32 -0800 (PST) X-Received: by 10.140.93.65 with SMTP id c59mr8253390qge.101.1455798092721; Thu, 18 Feb 2016 04:21:32 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w132si7713468qka.53.2016.02.18.04.21.32; Thu, 18 Feb 2016 04:21:32 -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 4387662EEA; Thu, 18 Feb 2016 12:21:32 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=ksHWzEV/; 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_H2,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 0237F62EF2; Thu, 18 Feb 2016 12:21:04 +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 6A44461D25; Thu, 18 Feb 2016 12:20:59 +0000 (UTC) Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) by lists.linaro.org (Postfix) with ESMTPS id 64B5661D25 for ; Thu, 18 Feb 2016 12:20:58 +0000 (UTC) Received: by mail-ob0-f172.google.com with SMTP id wb13so63742158obb.1 for ; Thu, 18 Feb 2016 04:20:58 -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=MIg8yD87debxlWSqFTtDIJmNhRc8NLCiVXqXy1eGuDI=; b=ksHWzEV/281bG4d8RGkQi6RBH3lddJYOmkfu98CcxAk/aMDhO42f1kHk9jBCJPnG0V dcrWMwxx8cuBcyObMtznYnHN0UtJFz7AJ0VEZgsCET8XI8fjZfugiU47YF66wLX0VUl8 9U87kQOL9YVW9+QrBPm/fQz/dWXRBQtldurtc= 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=MIg8yD87debxlWSqFTtDIJmNhRc8NLCiVXqXy1eGuDI=; b=L34QqlH7EXDduc1tbuQdR8yJ1ctLzKJ5bhGXcBHx98E/RURx9IJShnAHDrPNMZABWX 46LfUVl3kkBaeqnOrENzxoiaeuydYDiQJ4w52dh/+/F4hD1B2G3vkAnXVikV3AORvPC/ qKZJNSZQV4LJD0UDywGvgbuUcrtQLY4cfNjcJL+L7i7m8/sI8XVr9JoXGNy01u8FBXn3 iVXCZlZ7GroUgokVQY0Vo0bYVT23C6Xx0eHaTdFBtR/Y4347IEFuyZfXLyUTxXpzw58c U+CXqYJhcIkuNCMIYh3z6m/IBnCS6jcUvzc75d4vdw1ltY2i3of0HI7PyW+1x4AdGyMx 6xQQ== X-Gm-Message-State: AG10YOR0O5W6IfvYJmKGseKN7sytllbNQxZgkqhRfE5HtLF8Z0+ABrwhI6NkKZ8wCqsQDJRsGos= X-Received: by 10.202.102.69 with SMTP id a66mr5877119oic.93.1455798058015; Thu, 18 Feb 2016 04:20:58 -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 u68sm3650518oia.22.2016.02.18.04.20.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Feb 2016 04:20:57 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 18 Feb 2016 06:20:52 -0600 Message-Id: <1455798054-29132-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455798054-29132-1-git-send-email-bill.fischofer@linaro.org> References: <1455798054-29132-1-git-send-email-bill.fischofer@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [API-NEXT PATCHv2 2/4] linux-generic: crypto: implement 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 --- platform/linux-generic/odp_crypto.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 08b479d..bf743dc 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -597,6 +597,13 @@ int process_sha256_params(odp_crypto_generic_session_t *session, return 0; } +int odp_crypto_capability(odp_crypto_capability_t *capability) +{ + capability->max_sessions = MAX_SESSIONS; + + return 0; +} + int odp_crypto_session_create(odp_crypto_session_params_t *params, odp_crypto_session_t *session_out,