From patchwork Tue Jul 11 14:00:11 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: 107393 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp4941795qge; Tue, 11 Jul 2017 07:22:56 -0700 (PDT) X-Received: by 10.200.40.150 with SMTP id i22mr188638qti.59.1499782975527; Tue, 11 Jul 2017 07:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499782975; cv=none; d=google.com; s=arc-20160816; b=OU497Xz/Niykl1HOLlgawaRSLFSxSPqe2fwr7vox3yZ9tHGSDpZwH90b6l2LaFtW61 5dFht9N2+idVwa7axS6KLpewnvu2XfppflTCG9HSilFgCW9N5YP4WGwSCubTpEN6WxeH fGbeFOAV1t7K419DcyIricKnw8XIMREA0e5nQ2Q7aVpu2YP5xwzMVKlzSYZdOOo7TZPA C1IxrBMCzjaYU9+rWuyECi/zDWZRZ+xSOEUBX4B4ys+jRLTh1b+ragotnRB3bQlkad+e 3hitGCIuBSDB7KHb/vTH8TflCY6laaMvhiZR43uzqYHiX5kgxzs14Q8ZwxYR4dfETKBo eecQ== 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=NpelKyq32hf9rYzSRCBub4tv1546j/+yLaZjV/b7DkQ=; b=DHaFdieXgmoX3CjQYdybWy32EwXwf+rUR0Gi3iqXt2k7phJdMm8ZYyHMwRoPbJJUL4 Pyzim7xyuCTOQR2DabD+oTo8vnec/iD7pGlemni7hOF1UJuyQiw1ehoqJ0lPKjXNWoa+ 3HOZOJPQClhOLjuhGAbfbRp5BpofKt5qJF2YkGAJUBqSt17Eq+X3wAQJuNl3r3B0FBfa zXk/Y+W7sAhAmFIKP2zGv4+XA2ApkiEW9tMkiHgrH0f82XtMw9tr9onId2WyIyfE0rsB hO7aj58fgzKP2F/pjaQXrMUjMjGDr3G0dBYm9O4q/U5NN/A/fGKyWfZOXsDIvGCQ+Lk2 vSZA== 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 201si62565qko.140.2017.07.11.07.22.55; Tue, 11 Jul 2017 07:22:55 -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 209DE60D7F; Tue, 11 Jul 2017 14:22: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 C279160D6B; Tue, 11 Jul 2017 14:22:04 +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 28EE260D7E; Tue, 11 Jul 2017 14:21:58 +0000 (UTC) Received: from forward1o.cmail.yandex.net (forward1o.cmail.yandex.net [37.9.109.84]) by lists.linaro.org (Postfix) with ESMTPS id 34D9660D88 for ; Tue, 11 Jul 2017 14:19:31 +0000 (UTC) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [37.140.190.27]) by forward1o.cmail.yandex.net (Yandex) with ESMTP id B4F3921303 for ; Tue, 11 Jul 2017 17:19:29 +0300 (MSK) Received: from smtp2o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2o.mail.yandex.net (Yandex) with ESMTP id C88A25082A97 for ; Tue, 11 Jul 2017 17:00:19 +0300 (MSK) Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id gFNgaiu8XC-0IieVsIV; Tue, 11 Jul 2017 17:00:18 +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 17:00:11 +0300 Message-Id: <1499781613-30585-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499781613-30585-1-git-send-email-odpbot@yandex.ru> References: <1499781613-30585-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 70 Subject: [lng-odp] [PATCH API-NEXT v4 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: 79b3b30e286f3c31b3aac3ea7cf9f575e8bfe1eb **/ 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;