From patchwork Tue May 9 00: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: 98855 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1572017qge; Mon, 8 May 2017 17:02:48 -0700 (PDT) X-Received: by 10.200.50.49 with SMTP id x46mr32249821qta.105.1494288168708; Mon, 08 May 2017 17:02:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494288168; cv=none; d=google.com; s=arc-20160816; b=J5tytbfqX0yRSyAzGJVCaEA/HPFKzUXQl8XWcIOWOf8mQWBqE++aVDZ/Nwdkc9XgKm LtisN+fN/lv0yCXOaf1EEOYalyB/0RVGW6h+ykP5552R13n+x6IZVbsve/h4wtUsmPEp ynnJ/0b7tLqPYid/aGbia6u/5/bHwy3Ce64GKL91sfV6Vi4w8jAAaxj5fOm/oFYDorgQ 25fPW4mT8Bd5Qjr3Od8ZZGFfmUYZIyxsD+A2G1uEnWwPmHZQBX9WopLd2Pv9P5meN03r ykEow6f88yrGECQ24zyaOV7z+hyE4t3l9OjMSIFMLIauQeY/JKrQhE6RC8clhOKSVlIu WKIg== 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=R2UmlmgLe1tBjBGxZgC43aX8r8qM1YJX78rJbIBQarI=; b=cOaAizSKZOJVnkSjQxgREMRaSwPZltcQBSV0sgzTc5wlClIYuS4Zf8kMdevIKvbOiX b3JRNCrP5NjOmUxgTBTq5LUxpVq45Es4mXTV+pzqHFIQAi4+L91w4er9lmO9bPT1wIqV /BI+rm2y1ugCkMPAwc7fS87fww8xh3iG3ZbrNdWIN8DAj9KMuWutz+7EYIvw/k5Rolna c0OCDpoh6AIupk1QzdfckYg/lgBLMjHmcddAQLHAN3G50eiiN36cBgw27nPXiJMPiwmo FNH0eyaJotHlTC7+txADVXeDmf6/37Y3OmyfdsntJgv58xDAY4ncI95cwSj8u510+nct kYqw== 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 j16si7524488qtj.91.2017.05.08.17.02.47; Mon, 08 May 2017 17:02:48 -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 B8E2A60A51; Tue, 9 May 2017 00:02:47 +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 78DBF60B0F; Tue, 9 May 2017 00:00:57 +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 C3413606A4; Tue, 9 May 2017 00:00:47 +0000 (UTC) Received: from forward5h.cmail.yandex.net (forward5h.cmail.yandex.net [87.250.230.20]) by lists.linaro.org (Postfix) with ESMTPS id A8DEB60661 for ; Tue, 9 May 2017 00:00:45 +0000 (UTC) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:6]) by forward5h.cmail.yandex.net (Yandex) with ESMTP id 2C11721000 for ; Tue, 9 May 2017 03:00:44 +0300 (MSK) Received: from smtp1p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1p.mail.yandex.net (Yandex) with ESMTP id D86DD178072C for ; Tue, 9 May 2017 03:00:43 +0300 (MSK) Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id jXeh2d2q7z-0hhi3uRn; Tue, 09 May 2017 03:00:43 +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:05 +0300 Message-Id: <1494288006-2185-5-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 5/5] 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 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 | 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 3a33845..c16fcf1 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -901,8 +901,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;