From patchwork Thu May 11 23:00:00 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: 99690 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp33976qge; Thu, 11 May 2017 16:01:08 -0700 (PDT) X-Received: by 10.36.73.82 with SMTP id z79mr530242ita.20.1494543668551; Thu, 11 May 2017 16:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494543668; cv=none; d=google.com; s=arc-20160816; b=WC3DzQFEoeo+dmzF2xP58cx2krz9J1QA/LwQ+ZSA18WA4CW/2a16tc+/gccSIFFnnk 21B+oc5FVyGWZJvhn2X2vVgL10UdgUI+2ex1S9nmVZebXPbjctBd+l+QH/6OEnH2ulhz DWM9Oetihxh5bwuC/Eka89Bu43L43+gnBwn8J4Lu7J/J5t/UabNfBIKAJW5JUI/vk0Sr 2DIviyAr69VSZN2fsA+IzDjpfw9XlwbqK6mI4CTasXfBtpieil874gmKXxW0IGD5Tg7e pYTlb85WDT1BAHoyiUSAbVW7jbabJS4ruamNBg6M7MCSU6S6ON29AOL28wzRbTx8cHbK QuAA== 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=XagZxaDDFS2R9r2OEQ16tin9+hr3hJViLfFBjrQtK2s=; b=bUoHpfQntj7Dt6r0LFaRC8ObN5nfjwQ56BTjm3dab2UhxNUXwDKlf2WVa7n3E2vMTj e1qyGvwD2TLbvJSj9juE73jfTuhK6XakQPvrrSDTXcD+3LhQNjOyfFQbZdUqJ5Avj7/p 1BtvSZ5rqWisow/ivPaF3BESzzhnD/r+eYjtRedmSBgIGL5nsTkMDJNmawADBB21RM5X a8BnWmJXEZEII7moz2bPXHyE/ZzJ6SqVVbQY4wpv58fVyci5Z3Le/sn1ZxR8hgr7kYd4 ui1HqklunRey7Hv1vnW/tx7F/+k5DZlXMjuSoCblrFLfTp5czlWRjd8/qtt1tUI7B69m EhmA== 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 u5si254402itf.25.2017.05.11.16.01.08; Thu, 11 May 2017 16:01:08 -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 C72B560CE5; Thu, 11 May 2017 23:01:07 +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 D69D4606A3; Thu, 11 May 2017 23:01:02 +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 560A7606A3; Thu, 11 May 2017 23:01:00 +0000 (UTC) Received: from forward3h.cmail.yandex.net (forward3h.cmail.yandex.net [87.250.230.18]) by lists.linaro.org (Postfix) with ESMTPS id 20F976069B for ; Thu, 11 May 2017 23:00:59 +0000 (UTC) Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [IPv6:2a02:6b8:0:f05::117]) by forward3h.cmail.yandex.net (Yandex) with ESMTP id A636D2147F for ; Fri, 12 May 2017 02:00:57 +0300 (MSK) Received: from smtp3h.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id 7ECD2440DF7 for ; Fri, 12 May 2017 02:00:57 +0300 (MSK) Received: by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id orGMuV8N85-0uYOlXnC; Fri, 12 May 2017 02:00:56 +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 02:00:00 +0300 Message-Id: <1494543609-26126-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494543609-26126-1-git-send-email-odpbot@yandex.ru> References: <1494543609-26126-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 28 Subject: [lng-odp] [PATCH API-NEXT v4 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: b81277da57f0fe188a9a4e88872bba7ec92283ca **/ 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;