From patchwork Thu Jul 6 12:00:58 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: 107110 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2015706qge; Thu, 6 Jul 2017 05:05:04 -0700 (PDT) X-Received: by 10.55.1.140 with SMTP id u12mr60975094qkg.108.1499342704174; Thu, 06 Jul 2017 05:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499342704; cv=none; d=google.com; s=arc-20160816; b=Vejfg9R9D5oNPDz8RxqjeK7UqjlVgU++5pfjdPI9gcywpXDjhGrgKphfWSvLsUVbb8 cWpj08k2R04gHzQn8V0Q61+HSFU2gaQB8O/sbgCy+miWHm9g4SLJVaqofeV4fdlSEpLV GooBYsxPHFOATtLW5rMfl4QOjztypGW6C3X6p6JM2RSY//8Iy0TCrxYXaiym6sUTLIoV +FEyihYysbiGom5wWLV0MYFYO198DOHlrzWp7/imY2mBwMxFcCRO3QecAZTRIj31qk0f qExLJnYToEZbCYqtw7HEUu7I7VDBJfj4ogCLj07YwCQcLdkyDGwZ2NThz5bgXo0qiaXU Eejw== 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=77buoAxI9npJ2v3LDvKstnQS38iMYIlEoE/dLScKe8k=; b=xpHP9e2c1HTJ9vWOPfwAX0+MQXGl6TDIGH/6alM5wVjnpgyCOrGY4A22TqBs5d6L71 BTymYDyv08H+FIqE09xc3eW5OmMJOdV8Vo+E+fAfLz84HIsFAet7RgXV2q/lUCBdv9tX 6qXVUxs3DAOOC3MZl3EPSHTwBC0xpPQO9GrJYWT/CQ8u69xyL8Co8zs9OUY8hO52uCZF KgCQRcdrnPI3nQZUf8uqcwkFujzoPRz0EaCQ3W3SXDIyyURBQnCmqfd8hYYO4Zo5mO00 ourSZ4+NOx+Z6CK5gYWDwdz3GYg6j3sKjAwtY7aBGPBqh7BIsStZ3SgGARUY3TyppLHG QnyA== 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 t184si138071qkf.50.2017.07.06.05.05.03; Thu, 06 Jul 2017 05:05:04 -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 CE1A860CD7; Thu, 6 Jul 2017 12:05:03 +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 7023C60D76; Thu, 6 Jul 2017 12:01:49 +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 19153608E5; Thu, 6 Jul 2017 12:01:32 +0000 (UTC) Received: from forward1j.cmail.yandex.net (forward1j.cmail.yandex.net [5.255.227.19]) by lists.linaro.org (Postfix) with ESMTPS id A3EFB60CD2 for ; Thu, 6 Jul 2017 12:01:07 +0000 (UTC) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:8]) by forward1j.cmail.yandex.net (Yandex) with ESMTP id 3DEFC218B3 for ; Thu, 6 Jul 2017 15:01:06 +0300 (MSK) Received: from smtp3p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3p.mail.yandex.net (Yandex) with ESMTP id 865CB1320091 for ; Thu, 6 Jul 2017 15:01:04 +0300 (MSK) Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 9gr2GTN1Ra-14Ui0UmN; Thu, 06 Jul 2017 15:01:04 +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:58 +0300 Message-Id: <1499342458-18599-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499342458-18599-1-git-send-email-odpbot@yandex.ru> References: <1499342458-18599-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 69 Subject: [lng-odp] [PATCH API-NEXT v1 1/1] 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 69 (lumag:ipsec-const) ** https://github.com/Linaro/odp/pull/69 ** Patch: https://github.com/Linaro/odp/pull/69.patch ** Base sha: 15c97427d01c81dc9f4d0aafe9b0a99cdb2d1fc6 ** Merge commit sha: 777f6167fde63438802b01e07d1ac080f8b684b2 **/ 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;