From patchwork Tue May 16 16:00:16 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: 99880 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp2100506qge; Tue, 16 May 2017 09:06:59 -0700 (PDT) X-Received: by 10.36.0.86 with SMTP id 83mr12099655ita.63.1494950819728; Tue, 16 May 2017 09:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494950819; cv=none; d=google.com; s=arc-20160816; b=rhEYIaUYiKQhAR/xXoz9ZMINdCt4IHlWjeJLuPJu7fC5lHXtgLopO3OUKpAAAB4tp8 Jz2VE2cd4HBI+W54PtJJfhQKh2bjWRTRzfRMN9ghhDIDzjPw8a+/6HHYctRICE9IZ3el PysOHMshDR9GCZ27nJfkrYrP1IuMMVIoKsm//D/OL1BNRR08tgTM2cLYfFF/ECjp8t9u uneCxfUvPCDqqe7WSS1bUX/e5kDF5wmGut2od5GKS3UumUhYTzs9MZF0i6o1PGivZURb Zljmlvey1s30v2LlSqGKL2Y5+gtwgN8JnFXLkBqXa3krtqu3oL1bfFL3uYZAV20kpTLa xoGA== 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=EHsp5PZfBgb2bpJZLC+2ZPZkXfqGebMFadOc5/HYNAI=; b=Dudij+tvJowlXVU8vAM2c0hkejVxtyvkg4ogSdfgW2Bbo2Asi0Vdc0kk8SSdG1DkkK Ngn4BADaGbABVtqMG3XSlLUvCa3C00hC55V9KbDDC/baGQTJW788YUWiGe63sfM3YjEG lwiANMs98XGtkQ0LG7vIR6qoMPhBjgYIentryHaxYllDycBSpgzrWtmnZGArELnIWCWR R1LHCk5nT40rB0RxSitiyPedu1HkBzMaQISdJ8o5bgTTaxoPMUfsFjeuerjZVcFj3Gkw K73gjBgTqabuDtzh/xMoRX4O496zI0BPBGx7nOsf9dLnSfWb40IxvEqHKt7hBL5FwKqh 9T8w== 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 w67si2414438itf.114.2017.05.16.09.06.59; Tue, 16 May 2017 09:06:59 -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 30B7F60B65; Tue, 16 May 2017 16:06: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,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 B776960BE4; Tue, 16 May 2017 16:02:10 +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 27F29608E2; Tue, 16 May 2017 16:01:34 +0000 (UTC) Received: from forward4o.cmail.yandex.net (forward4o.cmail.yandex.net [37.9.109.248]) by lists.linaro.org (Postfix) with ESMTPS id 297D560B29 for ; Tue, 16 May 2017 16:00:42 +0000 (UTC) Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward4o.cmail.yandex.net (Yandex) with ESMTP id B7D56206FA for ; Tue, 16 May 2017 19:00:40 +0300 (MSK) Received: from smtp2h.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 87349780B18 for ; Tue, 16 May 2017 19:00:39 +0300 (MSK) Received: by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id uvbp18VO5L-0dj0bJSY; Tue, 16 May 2017 19: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, 16 May 2017 19:00:16 +0300 Message-Id: <1494950422-11135-6-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 5/11] 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: f4c213cccc49b4b28557506ad19fba49b872d24f ** Merge commit sha: e6ef5a70e5261ee32e5edb33fc7710d103010d95 **/ 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 */