From patchwork Wed Jul 12 12:00:26 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: 107486 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp723298qge; Wed, 12 Jul 2017 05:07:17 -0700 (PDT) X-Received: by 10.200.44.87 with SMTP id e23mr5558263qta.123.1499861237885; Wed, 12 Jul 2017 05:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499861237; cv=none; d=google.com; s=arc-20160816; b=hKLIwV4H/WHVCPCZGFxNk+LnS9Si1rJlYeDLwJ0XIZUaD9iKhTDBllVvZTCquoxR1y AfwlP7mPcYSrn+1tCQ/6Yoohjc5DsXGCgT5evkTJQmvEPoUoUv++/Mzl/Y7qzWtfFAP4 9afkbhvnM9Mwahn5IyIv6K/4sV/r+C/O8yjup7PemdAkRjdp5gXA+5QbtFX8n3t5nJGK Wsjliy1ZMpRhjY/8tp8Dl4XDxzMqK3FoVyypYDXuYOWaaCbkycg1xGFFNxI55Oky2/ct FYCySoFs5RisIpBka/zEuSZTQuScsKywpyjpVwGJnPa8rQCq/oGgbCphk3dbAATNMlSU rdFQ== 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=bE6K+aosrXTUBluD1KB/cg0aoMQBVEJv+Qdcab4fM3s=; b=fwx1HxZEnJV0l/K2W8L+8JssFy0kjBkWrvDexy+voI/6FMba9c8tsy8fh1oWX5UKP2 bQOHaW6SNJvITjjLTpN7Ocy49Dzd/Na+X2myhxbhsf3t7PygyMadNpnAZuLlDsoByhDB wf/DBJVxnpcNYBgu4mfWM8Y81oV8PnpWun3nsHtZvO0JX+KcAA6+jhLQO2c8DAW04SuB hqMRKIyFChUTwoL5AzTQiJERaqAimc5q9uIsaCPdI247RU8ONl/o4j0Pn6gUfmvEHatf hW76TXYs509eBYwqTaGWRZRfSIc+LycJHIy+7ZBvHkU4vWdHs+3A57r3bXEYuv2h+YRf V5sw== 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 35si2115909qtr.317.2017.07.12.05.07.17; Wed, 12 Jul 2017 05:07:17 -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 9A22B64450; Wed, 12 Jul 2017 12:07:17 +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 D5D0A644AA; Wed, 12 Jul 2017 12:02:02 +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 B3D8660D99; Wed, 12 Jul 2017 12:01:35 +0000 (UTC) Received: from forward1p.cmail.yandex.net (forward1p.cmail.yandex.net [77.88.31.16]) by lists.linaro.org (Postfix) with ESMTPS id 4A7AC61057 for ; Wed, 12 Jul 2017 12:00:37 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward1p.cmail.yandex.net (Yandex) with ESMTP id 4059B20275 for ; Wed, 12 Jul 2017 15:00:36 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id CF0E71300BF5 for ; Wed, 12 Jul 2017 15:00:32 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id iNMeyzBJO2-0V9CNvm3; Wed, 12 Jul 2017 15:00:31 +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: Wed, 12 Jul 2017 15:00:26 +0300 Message-Id: <1499860827-10025-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499860827-10025-1-git-send-email-odpbot@yandex.ru> References: <1499860827-10025-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 70 Subject: [lng-odp] [PATCH API-NEXT v5 1/2] 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: ee5be324411a7520528a367967c28fc529d3bc2e ** Merge commit sha: 6a6ddb857b818d00f19f05b93b9108ff0e9c9ec8 **/ 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;