From patchwork Tue Jul 11 10:00:10 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: 107339 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp4641035qge; Tue, 11 Jul 2017 03:00:54 -0700 (PDT) X-Received: by 10.237.33.241 with SMTP id m46mr9272970qtc.33.1499767254632; Tue, 11 Jul 2017 03:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499767254; cv=none; d=google.com; s=arc-20160816; b=jVzO23T3+4QotQjJw7oHCDESUvSaRRwuh1igcUndEdN7KDDhWpj4EVebTf9QVnDdXM DCRCsLWqY8UtUPnzc6WKXOIKs/wHxM4nNgcIQ2rkD+iDJaPLeDOzuKTbRsd/CJVJmnds ZuKOY2fwbl/wl7MszptW8zVKwTLwlGW33+F8rzUZhuGQAy5U0+0rNzjR3JX8R/BtE/WM NMGTa1698cVNV5AGPfrNJZNKuXbX5k7kgqJRdFYDTDVpKO6CwoadWBkIoBA4uaZKbSaK q1ees86SCPvKV0VxOP3r33NNXOVziheSvME6J64X7l+xm4zegkMXsVboeOSm/DR1ltJR G8qw== 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=zxmpZgUxkQTI2tRNK4iYk3137gcLhDnGlKbtYdMvudc=; b=jv3z4aym+uNpa4386lnYFxtH2dk3kPNAt+FrRFzZ+vOcX1T1v4GEPauh5Fzb5/XWGj 3bYelM6h4Ow2jnn7u4in4TAoZF4aC+Hk312WrNYy5zqcG6D1oJpV8EyzZbonQqXbqpuW 3JAx+S+CBO1A/8JuoMJkoRqAa3wTy9D/b8a8I7dyiRLYx3QLY74BbyUyXCL6qqdiUGUZ VlnX6iSLNm3Hh4YZ4rg3DTy8Grl4isDtUtI5I5jP22d5oYJz+GPdNN8ngn7mzsdkO5eQ frYQtXC891hsWdy/OYW4eCtND99tU/eGxiZnDZsk6P65Y95EF7d57WnPVRNQh9PQjA3J OHkw== 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 j29si13349821qta.153.2017.07.11.03.00.54; Tue, 11 Jul 2017 03:00:54 -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 53E4F6447E; Tue, 11 Jul 2017 10:00:54 +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 89785608B8; Tue, 11 Jul 2017 10:00: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 EE31260D6A; Tue, 11 Jul 2017 10:00:46 +0000 (UTC) Received: from forward1m.cmail.yandex.net (forward1m.cmail.yandex.net [5.255.216.2]) by lists.linaro.org (Postfix) with ESMTPS id 772A3608B8 for ; Tue, 11 Jul 2017 10:00:20 +0000 (UTC) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:6]) by forward1m.cmail.yandex.net (Yandex) with ESMTP id 1B87120DAE for ; Tue, 11 Jul 2017 13:00:19 +0300 (MSK) Received: from smtp1p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1p.mail.yandex.net (Yandex) with ESMTP id 994A91780DB8 for ; Tue, 11 Jul 2017 13:00:18 +0300 (MSK) Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id d8MgU8dZkU-0HmOjn6X; Tue, 11 Jul 2017 13:00:17 +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, 11 Jul 2017 13:00:10 +0300 Message-Id: <1499767212-26010-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499767212-26010-1-git-send-email-odpbot@yandex.ru> References: <1499767212-26010-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 70 Subject: [lng-odp] [PATCH API-NEXT v2 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: c7718962c6633c80eb71a0400d89c31f11f88045 ** Merge commit sha: f5b8bb84c21542d04bf9666c57b1bfe2cfc03f2e **/ 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;