From patchwork Thu May 11 22:00:01 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: 99680 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp14431qge; Thu, 11 May 2017 15:03:00 -0700 (PDT) X-Received: by 10.55.26.215 with SMTP id l84mr692503qkh.307.1494540180249; Thu, 11 May 2017 15:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494540180; cv=none; d=google.com; s=arc-20160816; b=y7G2kiod7vK3jL2y/DiNhIR14LY/GHofqIsqgDfBkGa9p4EZ6JGUVsAPy20HTsZWu3 gByyEUqm3e3BoIdJEgNcXM2kNM9Qp6k9RsyLkDz/TDj4U6eEThklFkoM+wDLulTfLQZC k3x8n/T00rj2QicoH+J9onFQIiFTDehVaPGPHWFaEHw5jqgbH5THhzEtLLfn3OAajqR+ cMXSF+BWMeVoUW4tV5AHvUVJ2D/eje+GFQT5wV8nBhszshn29fCAvrb9Xmnnq6Fnlm5O RacKe8f/mQ3aOvTksH6dVTVWauBI1lD7ubTSz7TftoGkHVuEcTIeHC5PedmiAmhaKL1z 0TTw== 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=O/fUzA8husYSXcWqlpusj7dlMElYThShWqKVtMcJzlI=; b=PT0PrYXhAhP61YmLkC8AlhEZvQ0S+4mk8v28zub9Vz//FFJRgfuKf6aYeV42oxZfxm 6P1T14jOWofeLMG36raxb06P+rR1E5kjuKXF2jm7MpU6BFpK0z9bJ/oAEJuhJqk1gkYs NOK0OLfl4IPLO33Zt/h2gli5IDTVwxt1RJZf1AXkBgcdfakTvXm10hZXMBZ2avhXe6f+ d8c5ysPPvpxXDDaPvKvSjjnYI7ITngxEVUdxWhhwfa/jqhA3Uz/C+n7qdN464m8CQsSL 9Cswe69GX9bOkGPPbM40zgV18KV6fM5ca9SG0y2Gy0k6kDYZP73MwbzMXKJYr/IiZ+Jf E1PA== 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 o31si1239188qte.220.2017.05.11.15.02.59; Thu, 11 May 2017 15:03:00 -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 CA9EB60C31; Thu, 11 May 2017 22:02:59 +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 B355B60CB2; Thu, 11 May 2017 22:01:09 +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 B429460688; Thu, 11 May 2017 22:01:01 +0000 (UTC) Received: from forward3p.cmail.yandex.net (forward3p.cmail.yandex.net [77.88.31.18]) by lists.linaro.org (Postfix) with ESMTPS id A2B4560688 for ; Thu, 11 May 2017 22:01:00 +0000 (UTC) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:8]) by forward3p.cmail.yandex.net (Yandex) with ESMTP id 598BF20699 for ; Fri, 12 May 2017 01:00:58 +0300 (MSK) Received: from smtp3p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3p.mail.yandex.net (Yandex) with ESMTP id 2B6721320046 for ; Fri, 12 May 2017 01:00:57 +0300 (MSK) Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id yyhcZmfGaE-0vUOxW4I; Fri, 12 May 2017 01:00:57 +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 01:00:01 +0300 Message-Id: <1494540010-25779-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494540010-25779-1-git-send-email-odpbot@yandex.ru> References: <1494540010-25779-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 28 Subject: [lng-odp] [PATCH API-NEXT v3 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: 1589f97414ab144b3cb1e65667d311783fdba670 **/ 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;