From patchwork Tue May 9 00:00:03 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: 98852 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1571440qge; Mon, 8 May 2017 17:01:20 -0700 (PDT) X-Received: by 10.200.44.186 with SMTP id 55mr13970006qtw.173.1494288079949; Mon, 08 May 2017 17:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494288079; cv=none; d=google.com; s=arc-20160816; b=c/KfhFfqcK28gxUZsl9sx8EMJm0KJk50+YHf07WBdH1YDOL4rbuwUb+5P2pFkLRClW THbYs6nPr0cd0U6EMDnqLPL59A//r2jbbwqY5Qle4tXL4WWGEsU1mz9D6AbznvbW/b9E 6tI6bZQo+CcnTqUFsKtuRMfqGGanjLy8t9eQQ3gMl3m1bSNp4Vat9oBkpk8iOcV5QxrN mQHcyEXghB3jVA0ctm5TuXHx9Fk6WNVsgec8Colbx85PASeyMSN5BzuGMK3YOnYbRocL bHcVNcWrnl7A7pHyfUrdjEf+jGK5rvXZ2pd2IASbsGCP6WF2Ub7AvEnWOl2kgd5KBzD/ QsoA== 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=j0UX2Ih4w1mt1yIvij3tmBV8OsETPK8hvgL82X8nTs0=; b=zbmmPGX1qMi0ld+8+UN6exxK3UnSBfxT2VJqofclf/b5jJ6VVjVd7ZB9p4qUxtufkE 5GCOnEkY4q26O+UW+nlyE9GL7JpcybWMF4xvwCLhfgqTSaUxgmR+LJPRsD5XaK3aiv/N COdtBzEnXPFldwvFaVGIXJw5Lyc3/5QBjscy2LCM3JpNHefJ1Fzag8V0Wt8oupTHvSf7 EUbvyt4Ueb/aOiwvPOxnJt18BFxMLkPm/B0dLe4nt7ZsixxWljfQJC+lftFwn4izAy+m AvFhXcjqPkVzEaGWAmhsrowqKHjrp0fb0qkefBGhOfg+vvtNJnU3wj6G0lbgKEcmcy7x 4s6w== 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 x125si12067732qkc.149.2017.05.08.17.01.19; Mon, 08 May 2017 17:01:19 -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 6611760ACD; Tue, 9 May 2017 00:01:19 +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 710A2607F1; Tue, 9 May 2017 00:00:49 +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 1E9ED607D6; Tue, 9 May 2017 00:00:45 +0000 (UTC) Received: from forward1o.cmail.yandex.net (forward1o.cmail.yandex.net [37.9.109.84]) by lists.linaro.org (Postfix) with ESMTPS id 718BE6067D for ; Tue, 9 May 2017 00:00:43 +0000 (UTC) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [77.88.29.84]) by forward1o.cmail.yandex.net (Yandex) with ESMTP id 069E420EB1 for ; Tue, 9 May 2017 03:00:42 +0300 (MSK) Received: from smtp1p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1p.mail.yandex.net (Yandex) with ESMTP id D0287178072C for ; Tue, 9 May 2017 03:00:41 +0300 (MSK) Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id jXeh2d2q7z-0fhirm3W; Tue, 09 May 2017 03:00:41 +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:03 +0300 Message-Id: <1494288006-2185-3-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 2/5] 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 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 | 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 c4fe6cb..26b3389 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -481,8 +481,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 */