From patchwork Tue May 9 00:00:06 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: 98856 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1572187qge; Mon, 8 May 2017 17:03:14 -0700 (PDT) X-Received: by 10.107.136.17 with SMTP id k17mr6092009iod.89.1494288194773; Mon, 08 May 2017 17:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494288194; cv=none; d=google.com; s=arc-20160816; b=BpA9OYqFJI2m2KvmZYPwTf1TTrAI1cX4YhfTmvuGeAasoAhUVhHGLxKDGeAoBnzTOA x/n85XIKe1XvkArpfLjzpK+icRg49xrxLsuZI2K/zCji6fRAoj/xziyot+6qhMrqIffF tho835m37xWIwTumdhtMJwPtskwatQRirKr8Q4wn4gm+ak2dXMrdhu8BV8FdBq0fipuA DquqU74cOZ3AQcFSd0rF/jzgj4dYc06/msZYiV0cR+PXWNuHTdaRhFDzY7YT0p5xeB4Y twIOzD2zeyedeedtosOimisDTHhAAVdCPNxtlq0tb9UJHY+IoGK+H1iOLU9/Ttv7pyYE zl1Q== 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=F9M3dP769waUKBL4WmzAowLLMyD8KDUnc+459sVqKmQ=; b=oOFBkohsnJvYcUfIIlECmaXXfYuMOnXazk4C2KsrWrQkVSjO2hlbVLRz7ACtnEz6se 2GM5K+QtkOmg5EgiOR5Z53q179vJ4gFkjGAqd6XStqBmmg87AY/tdco53s2NSKvfAd9X Yslth75s5kqsClzl53tAmJiE/rqn1Hgl5SiXDXCDKwMeU1ZvX+N6LLPUSc8x1tK5jT9l eOHDoVwRUE16XJewrRru91k4QiY44FxuMg+VZCdunKH+6KGYbvhYyCTXqle7xrmrM4/g IkvUHN2lewGWlNSGUcCxB+vkB5F+vwCNORxXnIrXlf6hxGp0BFarF6V5GEkCTuSShVKH UEDg== 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 j5si14456734itc.56.2017.05.08.17.03.14; Mon, 08 May 2017 17:03:14 -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 47AF76069C; Tue, 9 May 2017 00:03:14 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 B80DD60B06; Tue, 9 May 2017 00:01:00 +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 2A0FB6067D; Tue, 9 May 2017 00:00:48 +0000 (UTC) Received: from forward1o.cmail.yandex.net (forward1o.cmail.yandex.net [37.9.109.84]) by lists.linaro.org (Postfix) with ESMTPS id 27C2F6067D for ; Tue, 9 May 2017 00:00:46 +0000 (UTC) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:6]) by forward1o.cmail.yandex.net (Yandex) with ESMTP id 13480210CF for ; Tue, 9 May 2017 03:00:45 +0300 (MSK) Received: from smtp1p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1p.mail.yandex.net (Yandex) with ESMTP id DFA0E1780ACA for ; Tue, 9 May 2017 03:00:44 +0300 (MSK) Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id jXeh2d2q7z-0ihCGWQn; Tue, 09 May 2017 03:00:44 +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:06 +0300 Message-Id: <1494288006-2185-6-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 1/5] api: ipsec: move soft limits expiration to flags, rather than errors 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 Soft limit expiration isn't an error per se. It does not mean, that we received invalid or unprocessed packet. They look more like flags, noting that soft limit on this SA was 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 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index c16fcf1..34775aa 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -868,15 +868,6 @@ typedef union odp_ipsec_op_status_t { */ uint32_t mtu : 1; - /** Soft lifetime expired: seconds */ - uint32_t soft_exp_sec : 1; - - /** Soft lifetime expired: bytes */ - uint32_t soft_exp_bytes : 1; - - /** Soft lifetime expired: packets */ - uint32_t soft_exp_packets : 1; - /** Hard lifetime expired: seconds */ uint32_t hard_exp_sec : 1; @@ -907,6 +898,15 @@ typedef union odp_ipsec_op_status_t { */ uint32_t non_inline_mode : 1; + /** Soft lifetime expired: seconds */ + uint32_t soft_exp_sec : 1; + + /** Soft lifetime expired: bytes */ + uint32_t soft_exp_bytes : 1; + + /** Soft lifetime expired: packets */ + uint32_t soft_exp_packets : 1; + } flag; /** All flag bits */