From patchwork Thu Jul 6 12:00:41 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: 107109 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2013284qge; Thu, 6 Jul 2017 05:03:06 -0700 (PDT) X-Received: by 10.55.142.67 with SMTP id q64mr56860741qkd.99.1499342585997; Thu, 06 Jul 2017 05:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499342585; cv=none; d=google.com; s=arc-20160816; b=diQudLdK29nWRjobQmZ4xdZRpq1XwjTqkpSzaGPy3Ipol642ornV5tXUtFxd3q7ecF 8eSs1SUIJj3LujegXfkUp6bniphXrxpaTj9oKDm6Q61Wj55nOuCMl/LjExGAsjaYJ3p/ 8t8a0ft8TB0xNcEYklN5KsUzl/lQHQUgdN3Jep6U0cH54X+5Do2OSYa7ySYaNE/ESlzd k9RX3pGWAk6Va8d7lIo9MerTUm2vTvKVs8Qpiq8i/7+woIF3PCd3K4lRRIs3vn03HU3W Nnu6KhGLtq/W1nqb4qXqi15bG6jnL7vmjEgj9ietz5yTChHPz98Li5JSzUhCOB29ClDh Ldsg== 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=2aP0naPacA1/o5G9gJAFoQJ7GP5gu/v/52baIaxbCAw=; b=nxHDS3lZN9UHY3vn9YEw1dmhGja3mXWcSwe4ccGhr5F+D121mMPbFKnekP0wdWobYB R/2ZxJUjl2i8njVZCnTsu/RvKdrq4OC17R7k4jfGs72gF0pLy8G/5gNzl9nX8BijKsOr Tjv2cD3HiMVKoBW1UftR+a/qEnniN1I6d4LGlE9qkWyYLaejlP8qU44XoKO/OIx34NNx cwA3k5nY6BWGlBLKPfuvV7XX4PJAi7CyuCJg7uVaj2+BClBcxwzeBJRMYNAcxoDdM5i7 D4b+9Ae9vJIVSF+BfsgoiVlHpXXOjrpsgOHFfYKHcOX+P+967P2E6wiXElR2ZL7cp7nu WKWw== 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 z188si123559qke.98.2017.07.06.05.03.05; Thu, 06 Jul 2017 05:03:05 -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 9FEB260C8B; Thu, 6 Jul 2017 12:03:05 +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 6667860CDC; Thu, 6 Jul 2017 12:01:42 +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 01FF060A12; Thu, 6 Jul 2017 12:01:28 +0000 (UTC) Received: from forward4o.cmail.yandex.net (forward4o.cmail.yandex.net [37.9.109.248]) by lists.linaro.org (Postfix) with ESMTPS id BADF160C1F for ; Thu, 6 Jul 2017 12:00:55 +0000 (UTC) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [IPv6:2a02:6b8:0:801::ac]) by forward4o.cmail.yandex.net (Yandex) with ESMTP id 14F5920DC8 for ; Thu, 6 Jul 2017 15:00:54 +0300 (MSK) Received: from smtp2j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2j.mail.yandex.net (Yandex) with ESMTP id 754F83EC0F74 for ; Thu, 6 Jul 2017 15:00:50 +0300 (MSK) Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id IExLELTjut-0oVmMNpU; Thu, 06 Jul 2017 15: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: Thu, 6 Jul 2017 15:00:41 +0300 Message-Id: <1499342443-18540-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499342443-18540-1-git-send-email-odpbot@yandex.ru> References: <1499342443-18540-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 70 Subject: [lng-odp] [PATCH API-NEXT v1 1/3] api: ipsec: pass OUT_INLINE outer headers as const 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 Pass outer headers for outbound inline packets as const pointers. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 70 (lumag:ipsec-testsuite-2) ** https://github.com/Linaro/odp/pull/70 ** Patch: https://github.com/Linaro/odp/pull/70.patch ** Base sha: 15c97427d01c81dc9f4d0aafe9b0a99cdb2d1fc6 ** Merge commit sha: 7b101c6937865f27f10cc58285092a6cab015e2f **/ include/odp/api/spec/ipsec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index e602e4b8..2d3ab4b1 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -1024,7 +1024,7 @@ typedef struct odp_ipsec_out_inline_param_t { /** Points to first byte of outer headers to be copied in * front of the outgoing IPSEC packet. Implementation copies * the headers during odp_ipsec_out_inline() call. */ - uint8_t *ptr; + const uint8_t *ptr; /** Outer header length in bytes */ uint32_t len;