From patchwork Tue Jul 11 13:00:17 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: 107369 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp4843374qge; Tue, 11 Jul 2017 06:01:56 -0700 (PDT) X-Received: by 10.233.237.211 with SMTP id c202mr9511066qkg.1.1499778116105; Tue, 11 Jul 2017 06:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499778116; cv=none; d=google.com; s=arc-20160816; b=auZWE+RaFGv3oPKNZVmMowkCtlEoFmB1DKUQjzrnYS5bKxdD6V6v2+Dp4hI5PN4vID 8cVT8rPfJWG8mBJneE4UR7p1xGqE5yqXaPaM1OqZQnSDuF0XCXSiDUX2MFipnu2/aT5O aAP4tM+X3p9NEHxdmSzo4YprSXAsIhrAz0PwZodiFJDL/iYrpPOzZyi2Hjl0dW46bwNI NdEyGyDoRtyyJ97M5durwvqUSuQ2jO2AL8HI1yrsW4++Sj9fo86haLV1k65dtrhClBEv cD4NRShZNkYGqDXZAno1Cuys4lI5tdL12ZdcqCq+5y19O4sfdhS0sXXLJpTUmM1yMpKX rbjA== 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=4KAN59f60SfhwEhoWhbvOUTCkgfoRlnayLt15E+YdXM=; b=OpJ1eqrPXAe80F1Ks31DwjNLHHpiwKOkmyHDdx7jeXVKu8ufYO385v4NwHnhjdItit uzHU7SdKJBil5GF5tqCoojERwthAbJyE1sxx2nH8M8HZWk96LNKUz53Pok/rwl4oSr6q bLOgLrLJm7ewe2egDYFiRHBDPgzO9goP7SZOMHISMDcVsuaFAceKYG2XQZOH4smSClI4 uJOMb80lCeLiux2C7RnHebxA5cHHwBe9bpU6iDsJblIAJLBCQF7KMLmFXBD7QKYUNo56 dH1clHDaSkNGM/4pg/fh/EOgZ+OytV7M6kAb2EhQbupibdEjeNcZR1YxhzMwHUtzd4RB Mjew== 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 l190si13514070qkd.240.2017.07.11.06.01.55; Tue, 11 Jul 2017 06:01:56 -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 BDD1E64485; Tue, 11 Jul 2017 13:01:55 +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 4AE7460CA4; Tue, 11 Jul 2017 13:01:09 +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 A7DBE60C0A; Tue, 11 Jul 2017 13:01:02 +0000 (UTC) Received: from forward1h.cmail.yandex.net (forward1h.cmail.yandex.net [87.250.230.16]) by lists.linaro.org (Postfix) with ESMTPS id 0E9C96071D for ; Tue, 11 Jul 2017 13:01:01 +0000 (UTC) Received: from smtp1m.mail.yandex.net (smtp1m.mail.yandex.net [IPv6:2a02:6b8:0:2519::121]) by forward1h.cmail.yandex.net (Yandex) with ESMTP id 85B72211D8 for ; Tue, 11 Jul 2017 16:00:59 +0300 (MSK) Received: from smtp1m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1m.mail.yandex.net (Yandex) with ESMTP id 7DD9163C0F2D for ; Tue, 11 Jul 2017 16:00:52 +0300 (MSK) Received: by smtp1m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id qjTV8C9DNN-0kna7iD4; Tue, 11 Jul 2017 16:00:46 +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 16:00:17 +0300 Message-Id: <1499778019-28339-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499778019-28339-1-git-send-email-odpbot@yandex.ru> References: <1499778019-28339-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 70 Subject: [lng-odp] [PATCH API-NEXT v3 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: 39dc0a0792a9b54c4be0774d3fb6cb3a45809b2b **/ 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;