From patchwork Fri Aug 4 10:00:44 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: 109393 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp1144439obb; Fri, 4 Aug 2017 03:02:18 -0700 (PDT) X-Received: by 10.55.154.200 with SMTP id c191mr2285034qke.256.1501840938294; Fri, 04 Aug 2017 03:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501840938; cv=none; d=google.com; s=arc-20160816; b=JWc92TxXJt89c8NBwM+jqDCnLOTkrxBS7jEgcvPg72iVzJFQHSVsJz2gbZoJEND6o1 A6KDNNpkdAeTmsiXNnQgzlV9+YA0DYoooDtmxdeRjci9n3koM/Vowzc7pvxrUcN+h4Ol TnrxX2V32oQztkn/bjGdfH8is5wfST+JU1quBV4u6vYoDT9wtCzKMPSJEpQXRDySONN+ 0EJFPBDF7EmYzFMpDkRYsHMLTyJvjn1AEbumTOogPyPhYlGE6HuTxzjKv86Wpo4kkD/d 1k/y57EdKAb+PZcfjwpstW2wNOczrDxmyFf2PV/PuZ674tMS6PBdfknmh0rbhEwEItsk 6PTg== 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=OtDQkk1spvk7hhBc/I8krqyERjKtigwwHjAh2XZL170=; b=Rh8sh4gVcYdiEf3eEr2OZX0mutqkXlcQ7JAxD51Ho3qxXSyH9dzuI6rF7+ppK6/V6O ZYfllBpxLx/JvcN8mOOW+i4VMCW93L1G+rBX1K/f405sjCPE2IfgGW2mOH9Oby/pRJM6 k6YKy375liFlo2dqRI45LmZCcVZoz5/u2lToWEvqgRguKUFeurSBfIOUSv1p0SbECxWB /mk9LNS2nYEgY9EMKH38gHM7f1p8tCzbvWBLbCSuvNx8bZ1kBOMRv1+0HT6MSQU1ReVO jDDFkHTo90Xr6ylEsbGzzqr4QEZ0FdwZK5y+TdRccwZSnyOQicNn+TiLK9RRWFjv3YK8 Vj7A== 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 t184si1233270qkf.50.2017.08.04.03.02.17; Fri, 04 Aug 2017 03:02:18 -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 D257660D9E; Fri, 4 Aug 2017 10:02:17 +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 071B560D79; Fri, 4 Aug 2017 10:02:12 +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 BC44F60F42; Fri, 4 Aug 2017 10:02:06 +0000 (UTC) Received: from forward5p.cmail.yandex.net (forward5p.cmail.yandex.net [77.88.31.20]) by lists.linaro.org (Postfix) with ESMTPS id DC9AE60676 for ; Fri, 4 Aug 2017 10:01:19 +0000 (UTC) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [IPv6:2a02:6b8:0:801::ac]) by forward5p.cmail.yandex.net (Yandex) with ESMTP id 691AB20EB0 for ; Fri, 4 Aug 2017 13:01:17 +0300 (MSK) Received: from smtp2j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2j.mail.yandex.net (Yandex) with ESMTP id 60A713EC1215 for ; Fri, 4 Aug 2017 13:00:51 +0300 (MSK) Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 5xQaLi4O1V-0oU0qeTh; Fri, 04 Aug 2017 13:00:50 +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, 4 Aug 2017 13:00:44 +0300 Message-Id: <1501840844-7803-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501840844-7803-1-git-send-email-odpbot@yandex.ru> References: <1501840844-7803-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 109 Subject: [lng-odp] [PATCH API-NEXT v1 1/1] API:IPSEC: IPSEC events may be reported synchronously. 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: Nikhil Agarwal IPSEC events may be delivered synchronous or ansynchrous depending on implementation. Application will know based on return value of odp_ipsec_sa_disable API. Signed-off-by: Nikhil Agarwal --- /** Email created from pull request 109 (NikhilA-Linaro:disable_event) ** https://github.com/Linaro/odp/pull/109 ** Patch: https://github.com/Linaro/odp/pull/109.patch ** Base sha: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 0aaf1d8a11940deafd128c22b9620316de962e6a **/ include/odp/api/spec/ipsec.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 7085bc0d..3ad24eab 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -832,7 +832,7 @@ odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param); * the SA and be processed successfully. * * When in synchronous operation mode, the call will return when it's possible - * to destroy the SA. In asynchronous mode, the same is indicated by an + * to destroy the SA. In asynchronous mode, the same may be indicated by an * ODP_EVENT_IPSEC_STATUS event sent to the queue specified for the SA. The * status event is guaranteed to be the last event for the SA, i.e. all * in-progress operations have completed and resulting events (including status @@ -840,7 +840,8 @@ odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param); * * @param sa IPSEC SA to be disabled * - * @retval 0 On success + * @retval 0 When SA is disabled successfully. + * @retval 1 Disable event will be posted on SA queue. * @retval <0 On failure * * @see odp_ipsec_sa_destroy()