From patchwork Mon Nov 13 14:00:16 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: 118762 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1842901qgn; Mon, 13 Nov 2017 06:13:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMbnYjHD48Lz8QTu6cJZ8Elb/QtctREYDh8ycV4CRCH5HO+WDk0AuQCBX/rq6b/xMDs1+grF X-Received: by 10.200.15.164 with SMTP id b33mr12338267qtk.14.1510582387620; Mon, 13 Nov 2017 06:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510582387; cv=none; d=google.com; s=arc-20160816; b=s1dZ7pRBK+2NsUV7TxtFQ8aY6zDlZckSsJp/w3+5uVIu+MpyPkKciZvIN4w4UF76HH WiLISFiO7DW0LjzMHa7oR/+eaAyao+BIaO1s1e4Kfc8o6FcCIhlShnR5M90c9HicvSzH AgSFhRT2XGAtPEmJdQGGddPRfNNRdoN+6XqhXro1dnSXqtnTaX+gpPYshzMvgzrlM9qI DrlyLBQBgCMLiR10CkrZK1THHSpSz1EiThaCuA66vLSjAeIu0Cs9i2fKURa7LVIbxwrO OIP9GxJtEsSa6Lnj+qGPAP9FQ4HY66baXTUQ1PiiXWYg72Dbl6MB9ypxHZyF+CPQ4weF UuMg== 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=uN452Vh2MKchC6PQsRLPBJe4Hr+FsQek3IQpxlZwlJ4=; b=dn86e/MR1bDIfGoRhlm7Z9Kzrt4jTW3izcFvvPer1cbeE8tLWy0IPjjcVNhNYsopUs zz2YLt9j2K6cM5Yg59See4B3SQfVcevCRYjMcUMKSmUQvVB7UAo4svWoQsaO076Mb5gC MTM3Php/9BS1wk/7aX8cs4XbIU6BNHp7iboZRD9zFUKCfMKgKRrssdVkWrQ5iWA56y69 cVBKd7BAOq6NNc7XoJWIXIa11ZlEIGqaJthdfoUCTg8em/HJZc6IZCuF67R+0nZ/j7oW eT60gvBd+5rhNrt937vuMx2NIMHd00jE4LcY9KhUyLjANnknOAqWGnMmPn+iZuQ1mipy c7+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id 41si8186506qtb.359.2017.11.13.06.13.07; Mon, 13 Nov 2017 06:13:07 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 31B2560D73; Mon, 13 Nov 2017 14:13:07 +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 964956103A; Mon, 13 Nov 2017 14:01:56 +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 DDD4360991; Mon, 13 Nov 2017 14:01:35 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id E247260B16 for ; Mon, 13 Nov 2017 14:00:33 +0000 (UTC) Received: from mxback1o.mail.yandex.net (mxback1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1b]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 895C04301836 for ; Mon, 13 Nov 2017 17:00:32 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback1o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id IZZswz8ZH6-0WvqUunq; Mon, 13 Nov 2017 17:00:32 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 955rfAmciQ-0VkSD3br; Mon, 13 Nov 2017 17:00:31 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Mon, 13 Nov 2017 17:00:16 +0300 Message-Id: <1510581630-13993-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510581630-13993-1-git-send-email-odpbot@yandex.ru> References: <1510581630-13993-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 243 Subject: [lng-odp] [PATCH API-NEXT v16 2/16] linux-gen: ipsec: set inline_mode flag for inline inbound packets 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 Set IPsec inline_mode_flag for inbound inline packets according to the API specification. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 243 (lumag:ipsec-packet-impl-3) ** https://github.com/Linaro/odp/pull/243 ** Patch: https://github.com/Linaro/odp/pull/243.patch ** Base sha: a908a4dead95321e84d6a8a23de060051dcd8969 ** Merge commit sha: 845914564f2d99792452ac22a524279f44496a1d **/ platform/linux-generic/odp_ipsec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index 6a731e999..f49fc4656 100644 --- a/platform/linux-generic/odp_ipsec.c +++ b/platform/linux-generic/odp_ipsec.c @@ -1131,6 +1131,7 @@ int _odp_ipsec_try_inline(odp_packet_t pkt) memset(result, 0, sizeof(*result)); result->status = status; result->sa = ipsec_sa->ipsec_sa_hdl; + result->flag.inline_mode = 1; pkt_hdr = odp_packet_hdr(pkt); pkt_hdr->p.input_flags.dst_queue = 1;