From patchwork Thu Apr 27 11:51:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 98281 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp54918qgf; Thu, 27 Apr 2017 04:52:28 -0700 (PDT) X-Received: by 10.107.135.71 with SMTP id j68mr4156481iod.171.1493293948303; Thu, 27 Apr 2017 04:52:28 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f9si3071215ite.78.2017.04.27.04.52.27; Thu, 27 Apr 2017 04:52:28 -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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 760A762005; Thu, 27 Apr 2017 11:52:27 +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=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, 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 9D3E560844; Thu, 27 Apr 2017 11:52:23 +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 B9BE160820; Thu, 27 Apr 2017 11:51:56 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by lists.linaro.org (Postfix) with ESMTPS id C8C6860820 for ; Thu, 27 Apr 2017 11:51:54 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id c80so15930363lfh.3 for ; Thu, 27 Apr 2017 04:51:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=uXNbkQoQ+2xt5leWirH3nk2YWWJNhG5N/iLMCvK3Xoo=; b=gDBhCNRZmTxRZCFsQWjYf1YB70BgIU+1BxEF1QFuUPxb/po0PjpmZRYZhmqq3XjWPH 32NYFbta43YxWc8qYLZ00TgGBOYwYX+epqse267YMjI2fjQe86GMF6zSf+LTMCtFD9A0 lxwwv42A/LWS93QQFNMc3K4nNkppYIoPe3WMIwKOrh7iwH1JxoFRkSGMMvhLwcp7i4sn leTseXB5aPM8TiAdXG8fcEYewZuDi5iiSiVFv43KbylWliGM22X39YGrtOmReU/iJNKd FktvbcXLEyGSYqL0Y4clLEI41j9g11cRl/LRR1rPcbAYg3D2umoFiAep59bJOMKNX1iK SRsA== X-Gm-Message-State: AN3rC/44CtcFJq/TrU93484jnXorGPZ1OOnpfJY7ZkjtnhaV2PRaeQdM VQ39DdJOHmw6V3w+IPK7Pqlz X-Received: by 10.46.88.6 with SMTP id m6mr1928797ljb.91.1493293913329; Thu, 27 Apr 2017 04:51:53 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([94.25.229.39]) by smtp.gmail.com with ESMTPSA id 30sm425282lju.0.2017.04.27.04.51.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Apr 2017 04:51:52 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Thu, 27 Apr 2017 14:51:47 +0300 Message-Id: <20170427115150.19452-1-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [lng-odp] [[RFCv2] 1/4] 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" odp_ipsec_sa_create() should not change its argument. Thus mark it as a constant. Signed-off-by: Dmitry Eremin-Solenikov --- include/odp/api/spec/ipsec.h | 2 +- platform/linux-generic/odp_ipsec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.11.0 diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index cccb3b3c..4f746f67 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 5eb1be30..10918dfb 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;