From patchwork Tue May 16 16:00:12 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: 99876 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp2097552qge; Tue, 16 May 2017 09:01:53 -0700 (PDT) X-Received: by 10.107.176.131 with SMTP id z125mr11309770ioe.161.1494950513514; Tue, 16 May 2017 09:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494950513; cv=none; d=google.com; s=arc-20160816; b=JKbP5505CnDrD351YkCTVOeU9snut50zUGWWAH+Kka6+jchCS0G+wPsCNeG+EYMcIN 1qGVpCo8m6K3LO52Re4dRfIMXJQ+FojOe73J7BXB/b3Me0yLcA1jzLnMNcpFQueE3j5C dB3KgPJm0L8LCjbEviehJMq2nS7zpSsV9eZJXvv27VCW6pidNNpxarRxme3axDjd44Or f6E0i8pmcgWs1tpwNNzbRAZsMa8uaPxXBmE9rBrK+zwGGUJFR9UWEHf4cjuabQtvwD4h co2NMMw+s7DmZapupeZAwJKvXlg8OXv+LF3jNhy5Pq2WzH6E591V3HosQ/v9kT/mKgRv 4XXw== 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=kI/5RorhjbiuDOV8ISfMc96Sk9LbQaIaFf/Zi5ObEk0=; b=jvRS1cDxDlTQACCBZzTbLnHsYLBpGk1uUpUcuL6CzAd0+GYR9ksY9B3/k027U2A/hT 8WUWnxhLIFBnek+5C6zBPFOkDuWvPkXoulhIc8WlkCXMsLR0ZWSJ0tG7TTyXf0rEVWV8 PcFTWZ85WJ4oYTsvt6emMvmo+7b+K3GKZnmsclUW8YidqY2UD3dYP0DYjFxWJDBipPau oQC1ksNkOLvbIliXUw8Aj4m0Z2Rtsc77gN/ec57qgQ8z2mvIJDe6j0wV358xxyWhI7W+ wKYYRpkV0Q16hwvq7Ylxiuex/8PqY338H+JKQLehop+lf1nZhLKmK6hbowSNVSO1QQ00 A6Xg== 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 c2si12968378itd.74.2017.05.16.09.01.53; Tue, 16 May 2017 09:01:53 -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 EBEB3608D2; Tue, 16 May 2017 16:01:52 +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 B33EA607B3; Tue, 16 May 2017 16:01:36 +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 5941A60B17; Tue, 16 May 2017 16:01:31 +0000 (UTC) Received: from forward5o.cmail.yandex.net (forward5o.cmail.yandex.net [37.9.109.249]) by lists.linaro.org (Postfix) with ESMTPS id 619B160B04 for ; Tue, 16 May 2017 16:00:37 +0000 (UTC) Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [IPv6:2a02:6b8:0:f05::116]) by forward5o.cmail.yandex.net (Yandex) with ESMTP id 3DCE4214C8 for ; Tue, 16 May 2017 19:00:35 +0300 (MSK) Received: from smtp2h.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 106CB781BBE for ; Tue, 16 May 2017 19:00:34 +0300 (MSK) Received: by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id uvbp18VO5L-0YjCebkC; Tue, 16 May 2017 19:00:34 +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: Tue, 16 May 2017 19:00:12 +0300 Message-Id: <1494950422-11135-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494950422-11135-1-git-send-email-odpbot@yandex.ru> References: <1494950422-11135-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 28 Subject: [lng-odp] [PATCH API-NEXT v5 1/11] 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: f4c213cccc49b4b28557506ad19fba49b872d24f ** Merge commit sha: e6ef5a70e5261ee32e5edb33fc7710d103010d95 **/ 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;