From patchwork Thu May 11 21:00:08 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: 99674 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp925978qge; Thu, 11 May 2017 14:06:34 -0700 (PDT) X-Received: by 10.55.104.210 with SMTP id d201mr576350qkc.22.1494536794604; Thu, 11 May 2017 14:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494536794; cv=none; d=google.com; s=arc-20160816; b=DDKPEYimlgcpqFNnc3PGBriI1gf0RLuOd8STkmCs5zilxJcewL3Ox1PRij1Lsg8jFs WU4KyUKwPQoIcOeb49XHl3TOvr3Gr3D9EoQ9la67mkGK1UKh69vsI8CNLNa7auN10dVT Yp+5Hbg9r0BgeEyuJfZOXGtKqp7rpqNgoYRuCUPl52hWEalgYB33rMk1lCyw4EU/kXU+ RNq7+LunG/NQQZFpDmvDVkbfPo/Rpvw8DaLbKOa0YTSFKG9HRbuKFOhGK2zGRV9a7j12 yIlefRawm1/yJsCSVqmtq1qUj5f7ctm9Jj6cf286lYrM1P+DDwYXBQyJEtCR62JdiIcc pSzg== 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=GkOwL0gh9t+/CjtY7j6zxr3Jt99ZHaYS3J+89MhoAvg=; b=ZbPzBgbQwFcEyABgDsYvCiw8BGWFwsOA4U+wdCuM/qOIfY9howAluUec9uroNEXqiJ ueY88ddrpxY40eDTZPSjFJXS2J+jBXgT8eUHci+2yWZYnHhtV7vCf/Qg10RK1dVOBKUP XCG7fspQBp7HEt5+H9/+bvsNgUyw4sOc/vGlrw/rqnpihtKavOTc4njW2KtDk7r816lU r8Bqq4A9MiQDiNmkS7EQmsdtwa3gwFbG5zBGQZjcyILGOR7Ci5JcNvftnKWKs8M4Rh7P P2sdvy6AmoTUTwb8EXUOSWZNECpTcOtJNWgOegY6tsMNu+LlCCa9rWcyYuQjfMcO0Dsr lc3Q== 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 k66si1119807qkf.319.2017.05.11.14.06.34; Thu, 11 May 2017 14:06:34 -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 3038D60CE4; Thu, 11 May 2017 21:06:34 +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 32DDE60CE8; Thu, 11 May 2017 21:03:24 +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 52F3760CE4; Thu, 11 May 2017 21:03:20 +0000 (UTC) Received: from forward5j.cmail.yandex.net (forward5j.cmail.yandex.net [5.255.227.23]) by lists.linaro.org (Postfix) with ESMTPS id 6609E60CE4 for ; Thu, 11 May 2017 21:01:14 +0000 (UTC) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [37.140.190.28]) by forward5j.cmail.yandex.net (Yandex) with ESMTP id E7D6920782 for ; Fri, 12 May 2017 00:01:12 +0300 (MSK) Received: from smtp3o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3o.mail.yandex.net (Yandex) with ESMTP id 962102940E1C for ; Fri, 12 May 2017 00:01:11 +0300 (MSK) Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id P1VpeccWIw-1A5iGhh0; Fri, 12 May 2017 00:01:10 +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 00:00:08 +0300 Message-Id: <1494536413-25411-6-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494536413-25411-1-git-send-email-odpbot@yandex.ru> References: <1494536413-25411-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 28 Subject: [lng-odp] [PATCH API-NEXT v1 5/10] 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 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: 56945703e4054023470e63b004391db311215076 **/ 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 ceda881..0ae3233 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -880,15 +880,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; @@ -919,6 +910,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 */