From patchwork Thu May 11 21:00:05 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: 99671 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp924502qge; Thu, 11 May 2017 14:03:30 -0700 (PDT) X-Received: by 10.55.15.96 with SMTP id z93mr553955qkg.288.1494536610885; Thu, 11 May 2017 14:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494536610; cv=none; d=google.com; s=arc-20160816; b=ReL4o4+k3YSdqfUyqikjzn2woCm2Nraa9aiOU7bmxekKNTPKfZ3tbyO5hs8Sluvk2M Jocaz2Uv7hFOPCnzinJT2fL+OT11RqTEfbV1ZKXGW5Dp/+tSJXhDO9Xa4e5lr6WpWmHQ K9tv3vpBry1lNfArNmRCWrBye8JfWWjS/tmdSU2zbV5FcQ5XnPumPfo5+F/wym0uA6ym Odqfpv+EmB8a84IDqzBTqvvyGBbGh/o5hpF1XTKgLCLbiFUzcZYKJ/tSdNf3eiQARb9R QleErkqopclLGXTm5A1el/BH7UMaBAmVEq0AjOAOzbucWB7Kk466CWmTqDUuhbUvqGcf 7fIw== 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=7FcmH+XhsRhGVJ/H/8dAyyaYWMH8ri2LhjY+qV5W5a0=; b=i2qNcjqroOvOzQal9TNw4sig42iqzFWBNjj2EkuUD12froF94pONvFVFJrmBEmxeQM fKLWSbIShj8m364pVWTpu0TImFFERyn4jKtyHbxmE/qACuMX16M78Y4U8mzsE85y7oXM 4A/25GCwCXbWpFTY7cepd8cwCwxLAVZPaVSkUK19vr8wBWCZsse40OTqcBLT35H6Zbxn BqyfqEkKi+FLBn1KPPTTXBcEzxfx8uUuBXh5Jtf2NJIeuKwveD7gv+Ed48ZEFfaDuLPk cVQn8ZmvmxknqwRwfrYQ8G5ZUHpw8yCEr1zXXgPJw9X39rq96J16ckiJZjfRwhaxhsCS HDKQ== 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 y5si1157562qty.235.2017.05.11.14.03.30; Thu, 11 May 2017 14:03:30 -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 6EDD660D48; Thu, 11 May 2017 21:03:30 +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 2500460CEE; Thu, 11 May 2017 21:01:17 +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 B795560509; Thu, 11 May 2017 21:01:05 +0000 (UTC) Received: from forward4o.cmail.yandex.net (forward4o.cmail.yandex.net [37.9.109.248]) by lists.linaro.org (Postfix) with ESMTPS id 3DA2760672 for ; Thu, 11 May 2017 21:01:04 +0000 (UTC) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::27]) by forward4o.cmail.yandex.net (Yandex) with ESMTP id 98A64206EC for ; Fri, 12 May 2017 00:01:02 +0300 (MSK) Received: from smtp3o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3o.mail.yandex.net (Yandex) with ESMTP id 7811829409C2 for ; Fri, 12 May 2017 00:01:01 +0300 (MSK) Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id P1VpeccWIw-115uagvo; Fri, 12 May 2017 00:01:01 +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:05 +0300 Message-Id: <1494536413-25411-3-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 2/10] 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: 900dd9e2d3d2ae751ab2bc4e11dbd48ea7ed7030 ** Merge commit sha: 56945703e4054023470e63b004391db311215076 **/ 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 */