From patchwork Tue May 9 00:00:02 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: 98853 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1571617qge; Mon, 8 May 2017 17:01:45 -0700 (PDT) X-Received: by 10.55.155.16 with SMTP id d16mr29019224qke.174.1494288105015; Mon, 08 May 2017 17:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494288105; cv=none; d=google.com; s=arc-20160816; b=jedKPZbTxLOox2SiXfPqy06h+wWKCOUAkLRjoKbdnBoeh6af0zpSAQmzHudCUBke+d YmDLzv4Jbc/vJt/ZkK5L4J10WnKOFZOVfCYG2j2tKEe3+S3nbkAcPDCFRUp4i6gf8TRS fFDPQ0Q1btN/rPThcA4mAEZfFeBE4KUK4xhIxoAuBm06eXJ7oIRZbWPzKPIxrTAOQR/0 NMVthHiKkSodqClLbEJh49M+A1d+rJC+bKS3JwXwsIwp4TCQ56zsEhSEv3I+J+E9L1nO j1JY2bNNrmbQQR0oZIJ2Es3YwugDFCksHe6UR9yrKA1DZ1mAqWHeAdmEdceh2iexFglV C1sQ== 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=roSs4YeKVL4OKidX0KP0K39byOSuKE+2w3Zt/7tJZkw=; b=gtTgu7Fyy0FuIBSSn2tca80Djn2LPQuwprpJt7YM78s8f3Ryc6i8HAmzKKnKfZu7nn 0EUOeGgsbV8a1coNahG3KJgRoNJMw7Jj2JdWL22WCbB+Juohv5IsUgyk2BkiKoIIozOu 2x05n37EsAGXL6Hk+m4W2L3LHaVCWhUwszUA0JX/d0OrhuvRj3E1/IehqMdBNAq27Vbi LItuUIGePUAIQiVKArSji+XkyjGCxHnqs00W5DDzRSQh7n6ogo3e7CoQ8MCJLzV3//gB gqJVMdBnXgxWjVVWrKBbVvtAkVLf7JRBkswY5OBJC1mfqIReVN+wygbHU30DfCfxrhos dCpQ== 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 u30si6481659qtd.94.2017.05.08.17.01.44; Mon, 08 May 2017 17:01:45 -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 B567660AF8; Tue, 9 May 2017 00:01:44 +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 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 DBF9260AD0; Tue, 9 May 2017 00:00:51 +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 55294606A4; Tue, 9 May 2017 00:00:45 +0000 (UTC) Received: from forward1p.cmail.yandex.net (forward1p.cmail.yandex.net [77.88.31.16]) by lists.linaro.org (Postfix) with ESMTPS id 0E49960661 for ; Tue, 9 May 2017 00:00:44 +0000 (UTC) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:6]) by forward1p.cmail.yandex.net (Yandex) with ESMTP id 2CE4520F90 for ; Tue, 9 May 2017 03:00:41 +0300 (MSK) Received: from smtp1p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1p.mail.yandex.net (Yandex) with ESMTP id 02E15178072C for ; Tue, 9 May 2017 03:00:40 +0300 (MSK) Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id jXeh2d2q7z-0dhOpq57; Tue, 09 May 2017 03:00:39 +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, 9 May 2017 03:00:02 +0300 Message-Id: <1494288006-2185-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494288006-2185-1-git-send-email-odpbot@yandex.ru> References: <1494288006-2185-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 22 Subject: [lng-odp] [PATCH API-NEXT v2 3/5] 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 22 (lumag:ipsec-limits) ** https://github.com/Linaro/odp/pull/22 ** Patch: https://github.com/Linaro/odp/pull/22.patch ** Base sha: 3ea9c1dac34e0fb4785b0d643056c731daa55e85 ** Merge commit sha: 85b927011c941f816b853da7284c0c3a939c5efb **/ 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 e83494d..c4fe6cb 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -1080,7 +1080,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;