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;