From patchwork Thu May 11 21:00:04 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: 99670 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp924251qge; Thu, 11 May 2017 14:03:02 -0700 (PDT) X-Received: by 10.200.48.149 with SMTP id v21mr603935qta.84.1494536582478; Thu, 11 May 2017 14:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494536582; cv=none; d=google.com; s=arc-20160816; b=YmCm0reLeBt0e1qv3Yt/K/+TLOSt48mvTJhgllfh8J5d9eG3B9EWJfj4O3ydxGeei2 eRi6Oa3wURKhu0SHyb8K9mBj/m3h9FA5s2eMI0rY/jj8KV/u145HMzPhbLU7nrgsB2YU aQi47PXS34dXjb5dLjqINkFYWaSqBFllL91xK4y8l1BWTGUwQAGSrKZDji03WxFu0+kb O7loAK21pbLry13uwD5ZP20eC+F/X8vDP1RZFalVqP96ALALvRPRr5aWsXGjUhq9CZVm UrzeISADCjHOAkrhhET/mxUYlG8Ol36gv0leFJn2jv3x+uDn94I+XrfRKQ7TvTZizSc8 sLYg== 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=zY/RSt/h8RizRy96TOY7REBX/QSos9X+x2xjHQTilsk=; b=HRH4h0I+TwIOoMxq9Uu87cunMGuQ62XRRmmx43RBtEBy5mf0DpiIfKHHWZEx/uXmku X8YpHuDVfBcbTdytgphm1h92X2z/faehCdWl2YmDfoF33iOu732sBzy00qK2MsAuVd4+ 5r8ZSpmUszr6fmjE/LShK+0tv/ige9y1JRCoqfQKVQVuyjcjr8ynladl+VycRgssBUyO Athf+0g+VgYWyztKQMFysLfSB5lMj5Nmc4dD7S4MXsiRVh8tSX1Kh9l+sEfw6o5KpWLD P1BGaSH09zijIQjL6ppN5Pj0onK78Q6bWFJr77GxjOV/DmKpfTCJkcsYWQLj6JOrfff5 clEQ== ARC-Authentication-Results: i=1; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t5si1169260qtt.80.2017.05.11.14.03.00; Thu, 11 May 2017 14:03:02 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 8D20860CC1; Thu, 11 May 2017 21:03:00 +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,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 C41B660CDE; Thu, 11 May 2017 21:01:13 +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 8DA4F60675; Thu, 11 May 2017 21:01:04 +0000 (UTC) Received: from forward5o.cmail.yandex.net (forward5o.cmail.yandex.net [37.9.109.249]) by lists.linaro.org (Postfix) with ESMTPS id 116D360509 for ; Thu, 11 May 2017 21:01:03 +0000 (UTC) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::27]) by forward5o.cmail.yandex.net (Yandex) with ESMTP id 5B92D20C05 for ; Fri, 12 May 2017 00:01:01 +0300 (MSK) Received: from smtp3o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3o.mail.yandex.net (Yandex) with ESMTP id 38D842940D19 for ; Fri, 12 May 2017 00:01:00 +0300 (MSK) Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id P1VpeccWIw-105ifdCa; Fri, 12 May 2017 00:01:00 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 12 May 2017 00:00:04 +0300 Message-Id: <1494536413-25411-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494536413-25411-1-git-send-email-odpbot@yandex.ru> References: <1494536413-25411-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 28 Subject: [lng-odp] [PATCH API-NEXT v1 1/10] api: ipsec: add soft limit expiration event 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 If outbound packet was processed in inline mode, soft limit expiration event is not reported, as packet goes to the interface. Instead report this as an ODP_IPSEC_STATUS_SA_SOFT_EXPIRED. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 28 (lumag:ipsec) ** https://github.com/Linaro/odp/pull/28 ** Patch: https://github.com/Linaro/odp/pull/28.patch ** Base sha: 900dd9e2d3d2ae751ab2bc4e11dbd48ea7ed7030 ** Merge commit sha: 56945703e4054023470e63b004391db311215076 **/ include/odp/api/spec/ipsec.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 9a7404c..03742c6 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -1092,7 +1092,14 @@ typedef struct odp_ipsec_op_result_t { */ typedef enum odp_ipsec_status_id_t { /** Response to SA disable command */ - ODP_IPSEC_STATUS_SA_DISABLE = 0 + ODP_IPSEC_STATUS_SA_DISABLE = 0, + + /** + * Soft limit expired on this SA + * + * This event is sent only if SA was configured in OUT INLINE mode. + */ + ODP_IPSEC_STATUS_SA_SOFT_EXPIRED } odp_ipsec_status_id_t;