From patchwork Mon Oct 16 14:00:08 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: 115922 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3717514qgn; Mon, 16 Oct 2017 07:01:31 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SBx1xyNTEt9MxAdSD3ewIEIRBposl/wm0EKZnKES0rI3yLvGPguM6E2XjjOemEzTKJB7lG X-Received: by 10.107.131.147 with SMTP id n19mr12064953ioi.87.1508162491607; Mon, 16 Oct 2017 07:01:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508162491; cv=none; d=google.com; s=arc-20160816; b=f1kSbjfh3jZD3Z+EG8US++XjeVy1I65s2WnLw6brqvLOeWZ3/1iwodg8jmNZa7owws YBL8JIB9Z5LUQrwKPDEGhr4vDeGbS0dhzT9zlbrOxNhisQaWk06N4BgRGrWxm+faFzaK llElotQ7p5bIMW3xqbU5DzsjE3hi4oVFV5EUud2/lRYCVT1OGQRwtTSUAXIOm9x6xE9F clTY+ZJuiyEvoL12AiAYMFTakResUceHVxg+1mzzjwEDm1sNmtlEpySzlsFsmlrN5UeV n2chXELjB6qT7T0WKVEUj7McxlxaAH/qtRdO+IHb69h+EmNW2QfVWDPRnmRK9U1gQDxr iznw== 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=5r9DV6hA1ReaJVf3IC0NobPnehgh28LkPS1KMHLkVFI=; b=QqpbzMk380YRen6+ZKoQmrW+nog68x24E1G9/AKhs/rDRPXMHYrOwtMOPNEoTxVCoa d0/X5AzOCpVaf3qucPaZLwuxyGtcNR44ZPZK/BQQKn+GjYFo/GqfXSgSJYhcHu1Jn6s6 yj4PUFsV4GHxyLspYo3+ennQTx9nXtryI0Q4UrX6c57ZUib/GyT1lZKvdCTCt7NopCiJ BBtJvGukQsHNEdN6IJ6hP8Osr+zVgIgrahIULA5onPZWgrY79CJNxpe6CAH6fyojharL zipTCTmz/5SNHTES4zQhVQMjOfixKwpLkmlGbqKKhinDCDFKa2wk2l5EU0YBYbqbnHng +zKA== 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 u1si2760539iti.161.2017.10.16.07.01.31; Mon, 16 Oct 2017 07:01:31 -0700 (PDT) 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 3452260C1B; Mon, 16 Oct 2017 14:01:31 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, 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 36B3A60AF4; Mon, 16 Oct 2017 14:00:38 +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 F037760ABA; Mon, 16 Oct 2017 14:00:22 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id 858E460845 for ; Mon, 16 Oct 2017 14:00:16 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 0184C182FB7 for ; Mon, 16 Oct 2017 17:00:15 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id iAW2w93wRi-0EVWmC4V; Mon, 16 Oct 2017 17:00:14 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id MJ4Fc14z4t-0ECeWZ0u; Mon, 16 Oct 2017 17:00:14 +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: Mon, 16 Oct 2017 17:00:08 +0300 Message-Id: <1508162408-10034-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508162408-10034-1-git-send-email-odpbot@yandex.ru> References: <1508162408-10034-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 230 Subject: [lng-odp] [PATCH API-NEXT v2 1/1] api: ipsec: return maximum antireplay window size via 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Report maximum possible antireplay window size to application. Othersise it can try requesting arbitrary window sizes not supported by hardware/implementation. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 230 (lumag:ipsec-rws-cap) ** https://github.com/Linaro/odp/pull/230 ** Patch: https://github.com/Linaro/odp/pull/230.patch ** Base sha: afeda4d14bb6f449cb269680cdbd56b26726eedf ** Merge commit sha: aa5389cca5b69f6ad8a339b2ee3bd480c152010f **/ include/odp/api/spec/ipsec.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 3bd80b266..ddcdf75bb 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -282,6 +282,9 @@ typedef struct odp_ipsec_capability_t { * be used for many SAs. */ uint32_t max_queues; + /** Maximum anti-replay window size. */ + uint32_t max_antireplay_ws; + /** Supported cipher algorithms */ odp_crypto_cipher_algos_t ciphers;