From patchwork Tue May 16 16:00:13 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: 99877 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp2097949qge; Tue, 16 May 2017 09:02:26 -0700 (PDT) X-Received: by 10.55.191.67 with SMTP id p64mr10801636qkf.149.1494950546697; Tue, 16 May 2017 09:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494950546; cv=none; d=google.com; s=arc-20160816; b=svUrLte/VpC3w/hwN71eyQ+R6ayqOcqA7duwELDZgsbbrlZCuprLWjYbwOlL5f/phx fUqimsEvuUAW+cPM8XLJAHVrNNF+DNZCj3WAx9905BtG9izRVBJUOI3/PSOcesfUTE52 3rOK/lK51ZWc2ARKkOOmFUVOeW/zp4gNpcgIC5BjqHS+hNumpOw2t8+jxJ+uraw2PTug rZFNqRf+e7qka4OE7dyMfFSpmUUM4AImP9bC1aQwFgtPfv6ee2WlUSUHS0HfYtF0axZA 51qRAHkHC2V6QHAWccQl/O3je+gZXUTQpZOf1FCpf675EclA8LszjabT13fUm7NsSYVS pBVw== 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=jaqQfY4ZmGdHWfnaLa3KNgnpgIB0mf+CHaqhFbbqGnI=; b=W2TsoUbc+aZ5oHSMD9F6uhrFcpBb2LzXMfizv0c58s1FIACSv3CC14387j8NBhAKES isnl9yh8QHEW/eIGOW62pRa72a9LMJBTY+bV+H0S9blIVWxntmLIsNuVR6JK5+wE8lDj cPGFhzlQa3OVbs+1HvOF61rnRO80blBzuHhHlgqinzRVBxKkRKdyvIjlXzBYfEm2So1J yCunDYbLw3nhNfOYSHp79mgOxkbSORLDz6OdXml9YOgqwyzFMWTU3VecaPyDyFOtJ4Vw OcE6xJDf99jbgx7wWcX5numapO26P4AtAsfOdHjSEj+Sj+m9+asy+gp0sxbZTxpqxTyC 9DTg== 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 o51si6983638qtc.263.2017.05.16.09.02.26; Tue, 16 May 2017 09:02:26 -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 3D65660B05; Tue, 16 May 2017 16:02:26 +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 31EF660B17; Tue, 16 May 2017 16:01:40 +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 9221560B04; Tue, 16 May 2017 16:01:31 +0000 (UTC) Received: from forward4j.cmail.yandex.net (forward4j.cmail.yandex.net [5.255.227.22]) by lists.linaro.org (Postfix) with ESMTPS id 5E6AA60B05 for ; Tue, 16 May 2017 16:00:38 +0000 (UTC) Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward4j.cmail.yandex.net (Yandex) with ESMTP id DF1112125B for ; Tue, 16 May 2017 19:00:36 +0300 (MSK) Received: from smtp2h.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id B9611780B18 for ; Tue, 16 May 2017 19:00:35 +0300 (MSK) Received: by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id uvbp18VO5L-0ZjCvvYn; Tue, 16 May 2017 19:00:35 +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:13 +0300 Message-Id: <1494950422-11135-3-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 2/11] api: ipsec: note that soft_exp bits are set only once 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 Add an explicit note telling that soft_exp bits are set only once, for the packet actually crossing the boundary. They will not be set for further packets. 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 03742c6..b1c81b1 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -493,8 +493,10 @@ typedef struct odp_ipsec_sa_opt_t { * * These limits are used for setting up SA lifetime. IPSEC operations check * against the limits and output a status code (e.g. soft_exp_bytes) when - * a limit is crossed. Any number of limits may be used simultaneously. - * Use zero when there is no limit. + * a limit is crossed. The soft_exp_* bits will be set only for the first + * packet crossing the boundary. Any further packets will not have those bits + * set. Any number of limits may be used simultaneously. Use zero when there + * is no limit. */ typedef struct odp_ipsec_lifetime_t { /** Soft expiry limits for the session */