From patchwork Wed Feb 17 19:37:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 62127 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp187297lbl; Wed, 17 Feb 2016 11:37:49 -0800 (PST) X-Received: by 10.55.78.70 with SMTP id c67mr4109163qkb.37.1455737869888; Wed, 17 Feb 2016 11:37:49 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g6si2762164qhd.43.2016.02.17.11.37.49; Wed, 17 Feb 2016 11:37:49 -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 DA9F36675C; Wed, 17 Feb 2016 19:37:48 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=DIEVX9hM; 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 95462616C1; Wed, 17 Feb 2016 19:37:45 +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 8CF5F616C1; Wed, 17 Feb 2016 19:37:43 +0000 (UTC) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by lists.linaro.org (Postfix) with ESMTPS id B3978616C1 for ; Wed, 17 Feb 2016 19:37:42 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id gc3so30165521obb.3 for ; Wed, 17 Feb 2016 11:37:42 -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; bh=AraXX3e2P6NNgnfdaC3f44hWRR+PnZxTNaQKTZsxsj4=; b=DIEVX9hMNEDVlOvoC169vS77nm4YRCMz7q4oM1ZnBXeeShVCmo53vlweT+0a1kpuad 97/Uat1ajVPfL+i+hxQwg/pKjecAVVjJJMF5HkZwP63vg+zbKRiGeA3mOKprYlHGBD2g nZQKsbsNdEP/MT4wKiTPAvGZhHtNk/NsKKqH0= 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; bh=AraXX3e2P6NNgnfdaC3f44hWRR+PnZxTNaQKTZsxsj4=; b=DFbxT+b/qNSwpWyvQ1gN48PDlLBl76Uy35KYlz2yRYARbB0NF7NHtGyhjF8f2bS7LE GqBL7JToGoHM0SxpxuQIc33PFfUaTNHRT5emJXpS934GiM79aoizOeLpFuyewJApoHuO DrgLzuCZuE789DAx12WeXBruSyuwEWwwt56f8FOhhoDaiDMmMy6GI3ne1eoabdL0pcaL MIW0bgj3zUaP4bvE/zS94wwdmZlRnB8I3PFzBQ+EkNCA37e+FnzCKsHuW7uWiaWWYUI6 oVg9BVzFoc6AOeUKu10rQ+hRXNTw1Rm3cn7VCcg1c2teLZwSuvRbmae0Y3Qgvn2ebOo6 xIYQ== X-Gm-Message-State: AG10YOR5kp2GCA2cGhQxKv/6hJPWJTys+rZC01A2F6EtEdhXC/XaPt5O1QFY82ab1KizaHTS7as= X-Received: by 10.182.86.33 with SMTP id m1mr2724486obz.48.1455737862281; Wed, 17 Feb 2016 11:37:42 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Feb 2016 11:37:41 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 17 Feb 2016 13:37:20 -0600 Message-Id: <1455737843-4588-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: crypto patch Subject: [lng-odp] [API-NEXT PATCH 1/4] api: crypto: add odp_crypto_capability() api 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 Reviewed-by: Balasubramanian Manoharan --- include/odp/api/spec/crypto.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 41beedb..eaacff1 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -254,6 +254,24 @@ typedef struct odp_crypto_op_result { } odp_crypto_op_result_t; /** + * Crypto capabilities + */ +typedef struct odp_crypto_capability_t { + /** Maximum number of sessions */ + unsigned max_sessions; +} odp_crypto_capability_t; + +/** + * Get crypto capabilities + * + * @param[out] capability Pointer to capability structrue for output + * + * @retval 0 on success + * @retval <0 on failure + */ +int odp_crypto_capability(odp_crypto_capability_t *capability); + +/** * Crypto session creation (synchronous) * * @param params Session parameters