From patchwork Wed May 10 22: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: 99023 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp442820qge; Wed, 10 May 2017 15:01:25 -0700 (PDT) X-Received: by 10.55.204.16 with SMTP id r16mr8247335qki.169.1494453685231; Wed, 10 May 2017 15:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494453685; cv=none; d=google.com; s=arc-20160816; b=OrDxKFiJPgmi4o4CEPhnfD10dPTc01ZhdMKkhgFI4fIge7Kqw9ffWKE6N3850fWkmS WO5pBFFv+zZdIg4SggZowkWVJQJH+xB7eUI/29XOn92lNo+ydULj/8uSvdUWmcEmxrjk DNPLm4re4NnQxzsozmGQfzPByRnXYuiw/TxQkPYPAXy9AMCAHvP/HIoR2llcdR70fAG6 r4zzPFuBxJqUW1fcWTN18S+jvJeDPTW7kKgT/i/hUmUq8O9eskvDJA/7UnCfHaIHHIBC LKMFD7WxbP80XyKglfazsxvk4ZGU5Z+BTU655kXNa8p+h9da/sj2O4iG/3+crq8ONl9P v9cA== 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=6U17VdOGKuDdqMB8iJAPUR5Ao+NEbf/4P+fnv6z8S6s=; b=Y5BrzKr389USlUtceqz/48Hv60X+9u0xhU2rv4Yk648VWYngT13obXgpvbvNOpRryK S/MlSruDk8NZsVqVyToUxfP+NOmfiPJeWRrxtFel2mf1+po70Mf6VwDyexH0BK1AxS1S 9/PhhU6bqciM8L9D1NG1yS3SA/PVJCETATRra10YJCK2lX7dPV+sm+IA9cEn+lweCmre EeM4IyP2VA54Jf0GF6AaQ3BNaAkStZj4mflasv0Qq3fN/bCQKHYJLamj9HaGWEpbay1F dm/i/Gf5Wsw6gN7hJQ97t7ac4+2zoZlSbFLNpWTZFZo1xac9KIokUuvie339HJ97afVH JeUQ== 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 a201si190107qkb.299.2017.05.10.15.01.25; Wed, 10 May 2017 15:01:25 -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 E4EB1608EB; Wed, 10 May 2017 22:01:24 +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 6A9016064E; Wed, 10 May 2017 22:01: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 4159060688; Wed, 10 May 2017 22:00:57 +0000 (UTC) Received: from forward2j.cmail.yandex.net (forward2j.cmail.yandex.net [5.255.227.20]) by lists.linaro.org (Postfix) with ESMTPS id 10634604F6 for ; Wed, 10 May 2017 22:00:56 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward2j.cmail.yandex.net (Yandex) with ESMTP id 5C67220C0A for ; Thu, 11 May 2017 01:00:54 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 0BB8F13000D3 for ; Thu, 11 May 2017 01:00:53 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id OdaSIqpL6l-0qkmVxjW; Thu, 11 May 2017 01:00:52 +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, 11 May 2017 01:00:10 +0300 Message-Id: <1494453610-17902-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494453610-17902-1-git-send-email-odpbot@yandex.ru> References: <1494453610-17902-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 13 Subject: [lng-odp] [PATCH API-NEXT v2 1/1] api: ipsec: mark odp_ipsec_sa_create argument as constant 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 odp_ipsec_sa_create() should not change its argument. Thus mark it as a constant. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 13 (lumag:ipsec-api) ** https://github.com/Linaro/odp/pull/13 ** Patch: https://github.com/Linaro/odp/pull/13.patch ** Base sha: 3ea9c1dac34e0fb4785b0d643056c731daa55e85 ** Merge commit sha: e9577831c18ff1aa9d6b036af7c1fbdfd51d0405 **/ include/odp/api/spec/ipsec.h | 2 +- platform/linux-generic/odp_ipsec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Petri Savolainen diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index e83494d..59737e6 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -773,7 +773,7 @@ void odp_ipsec_sa_param_init(odp_ipsec_sa_param_t *param); * * @see odp_ipsec_sa_param_init() */ -odp_ipsec_sa_t odp_ipsec_sa_create(odp_ipsec_sa_param_t *param); +odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param); /** * Disable IPSEC SA diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index 5eb1be3..10918df 100644 --- a/platform/linux-generic/odp_ipsec.c +++ b/platform/linux-generic/odp_ipsec.c @@ -52,7 +52,7 @@ void odp_ipsec_sa_param_init(odp_ipsec_sa_param_t *param) memset(param, 0, sizeof(odp_ipsec_sa_param_t)); } -odp_ipsec_sa_t odp_ipsec_sa_create(odp_ipsec_sa_param_t *param) +odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param) { (void)param;