From patchwork Thu May 11 23: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: 99693 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp36002qge; Thu, 11 May 2017 16:05:50 -0700 (PDT) X-Received: by 10.55.41.74 with SMTP id p71mr1083658qkh.110.1494543950609; Thu, 11 May 2017 16:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494543950; cv=none; d=google.com; s=arc-20160816; b=tGM1pC5RZmD5JDCSbfpWJobvGaQLvQN8SHr1lDt2q23wIIYBDvb8yQP6tOrBMVH9Hu uHLg+qZeSLCoiQ7/hSVZcgYYh/op0Ov/0xNz3Os1gS8JZ9NhFDd2pao96mOrGLP8NvT7 Uwp2IyL49hpSrEioqdrtJckJExvhaNVlpPMcW/y2/l/X1mAkxwoWcDyH0bDpwrzU4DtW ciLkVmLRNCn/k+ESWv3p5rmAazlaaPjUyVDfSDyDbshwdpzkYWgxT3mTmWgu90j4AaFq HkpTfNLON8EXe42vVUTqeyrHWEOK/pvQ2GVVqqGzrKVJsZgijcOaB5jemIUthhnUxBbB 0wDA== 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=YEeC33bVaCwNJgIy1eCZyN078Hxv6E/v79X7maiqpS8=; b=rHJPRVDjLbbG7QcyoFjP2Lqo/uiVKS+SXW9BBe0VXGZlFTisg8WV9fMxghkdEXSaSa 9d18KAZqk8YFY3YCxEziyU//DLJ+Gq07fC9x9WQ36R+sg4GHeDlNJzoG/cn3UmV5wzW4 mJ2soQZUXjaIMT+0c/fb1MsM6cFxoIyQQZcVDjI6MyII2aveT43tE4y5rVCXNnGyG1xV BpKH1+R8DjBAmb9NfjWOT5EbNogDwLL+W8uynmE3BiHRhWLlJzJiezHIB5BsglSid952 DQvTOxfl/S6KC6/jgFoLHEXGQqumItEknMAVC0V77yfQYBeMJNrccCl6adrtstBPtgY0 mYeA== 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 j124si1358206qkc.254.2017.05.11.16.05.50; Thu, 11 May 2017 16:05:50 -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 38FF96071D; Thu, 11 May 2017 23:05:50 +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 11A5760D00; Thu, 11 May 2017 23:01:32 +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 B120260D48; Thu, 11 May 2017 23:01:27 +0000 (UTC) Received: from forward1p.cmail.yandex.net (forward1p.cmail.yandex.net [77.88.31.16]) by lists.linaro.org (Postfix) with ESMTPS id 86AAF60CC1 for ; Thu, 11 May 2017 23:01:03 +0000 (UTC) Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [84.201.186.20]) by forward1p.cmail.yandex.net (Yandex) with ESMTP id 1FA66211B2 for ; Fri, 12 May 2017 02:01:01 +0300 (MSK) Received: from smtp3h.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id EBE9B440DF7 for ; Fri, 12 May 2017 02:01:00 +0300 (MSK) Received: by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id orGMuV8N85-10Ym2jUj; Fri, 12 May 2017 02:01:00 +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 02:00:03 +0300 Message-Id: <1494543609-26126-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494543609-26126-1-git-send-email-odpbot@yandex.ru> References: <1494543609-26126-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 28 Subject: [lng-odp] [PATCH API-NEXT v4 4/10] api: ipsec: invert the inline_mode flag 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 For INLINE-destined SAs it is typical to have packets processed through INLINE API. So, let's invert the inline_mode flag to mean that the packet was processed through ASYNC API. 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: b81277da57f0fe188a9a4e88872bba7ec92283ca **/ include/odp/api/spec/ipsec.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 103fc39..ceda881 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -913,8 +913,11 @@ typedef union odp_ipsec_op_status_t { union { /** Status flags */ struct { - /** Packet was processed in inline mode */ - uint32_t inline_mode : 1; + /** + * Packet was processed in ASYNC mode through + * the SA configured for INLINE mode. + */ + uint32_t non_inline_mode : 1; } flag;