From patchwork Thu Feb 18 12:20:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 62167 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp553199lbl; Thu, 18 Feb 2016 04:21:05 -0800 (PST) X-Received: by 10.55.195.149 with SMTP id r21mr8114839qkl.59.1455798065632; Thu, 18 Feb 2016 04:21:05 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g6si7687404qhd.43.2016.02.18.04.21.05; Thu, 18 Feb 2016 04:21:05 -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 3555262EF6; Thu, 18 Feb 2016 12:21:05 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=J+gdq5T6; 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 3883B62BBC; Thu, 18 Feb 2016 12:21:01 +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 BB18161A07; Thu, 18 Feb 2016 12:20:58 +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 B567761A07 for ; Thu, 18 Feb 2016 12:20:57 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id xk3so63600849obc.2 for ; Thu, 18 Feb 2016 04:20:57 -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=dMlyoBBjFQSd/XvhsM2vdr4Vd+rsnSPyw/FAUGmImoU=; b=J+gdq5T6mCm99KDyQiXKk8jNxrFn6dZPcVKg6csUzQVD+noG7AZwgkOSbClurzLSik udwLEDROiluI+WvmmhjyXEJg83MfZhr0RriQn2EKH7ZZCa5asAftd9ocClg6uPPnZHGd 4KV4BEFd4AhdPadYNnBjPibH8SphaeedlQjkE= 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=dMlyoBBjFQSd/XvhsM2vdr4Vd+rsnSPyw/FAUGmImoU=; b=YRbHEa3QIR6mXqvSl8ycZLIBOd5cQPrUGpI1hWbLbRgj74kPihShrFacaU3XWyxWl/ MI8zx9XEKPLy3NHZIwrgyCklpwfQoWWpxrpf/qX+44tJdwRapxeHo+7eZ1hi5qIF/pbo WLMON7+LqUQAQSHG4+fQ1XLG5qk2yn56v1s4nPXrjJ5mBFkTdmu7P1/aQvRfcv2+mfUr v8p2n3puHbvgcRlUBJood+HPMSJj98NSObM0Ra3XrMJa9BseU8EB8jgJXXnhY3WMKC3w KxyYC6oAobCaSKsyRGX9NEYqHFtlVdefWr1D9qWYg1NvArHk/coDTaeD6BepIFdGIWbW mKQg== X-Gm-Message-State: AG10YOQv3Lc7S/Fhtg0eShY8PmOewXS/0FwGH6UGnNLytv9fXMhhmo7tcDFErpNB5tCkBamLFjE= X-Received: by 10.202.82.193 with SMTP id g184mr5386468oib.110.1455798057232; Thu, 18 Feb 2016 04:20:57 -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.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Feb 2016 04:20:56 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 18 Feb 2016 06:20:51 -0600 Message-Id: <1455798054-29132-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 PATCHv2 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 --- 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..81e4621 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 structure 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