From patchwork Tue Sep 12 09:00:06 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: 112256 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp5628395edi; Tue, 12 Sep 2017 02:00:44 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAev45B2YGRlkV15tm7dld12w+0ht3OFw8K58xX2VVyLrF/8TdxHC6IzlnrSYKej6zLgqHZ X-Received: by 10.237.61.221 with SMTP id j29mr21450662qtf.282.1505206844597; Tue, 12 Sep 2017 02:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505206844; cv=none; d=google.com; s=arc-20160816; b=uhF64JNnqh6jF2OWDgxP6e/Cx7Ckdx/KZK/B2Hs5WGRwF3AYEZpLrhuCYjIqD5c4LX ks10uM6Arn9km700rVgm2/cPzHl0NRuNJa+2H5dTN6VosBjvRAS4Fd4qsBc0U/a/632a K+zF09G4ajoes9f3hdBsOS8QNdiG7EURdkiNGzp+V8AVVkrtI1PdHXRZzAu/L9VOzwoL XGaI81qorPrAL/Bnfx84b3lsbnILeJsTmo+HVxOHlS4hR+OzCyLWrrCA/+dCZXiocKBf GzgdTXMi7xOYr6wPuPV2vSVDyURb9XEV5UXREivDDjSur8yY7I3spml6HuwqeqOzN2YJ BxZw== 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=Ej3hl2Vnch0Dc8w8IuIJEh7APBCXKNfEDSqi609VsXY=; b=JhoeiTwPXy/J4seyqXUHBJCIPV7/9c+zATVof/LVtOcYSPDsY1nRswQhzJFx/X4qKm LgITxT7p+5GHUuCGJLUQXNaGACIG3El9aZhbs10Wd+q6Kh03m1+qqED2cZ+5trHO6WY2 sbPfhu5yZp1z4d/PBUfpMDyqBmb7BDg6uahTU2xCS2hFvM7vebpnOvLsXoYkaDWdIDWa Eo5AKOrOMfrmaarCMSFWq7vC9wkU9apzOzBu8DGWiIzPLJE3j/s3HpQ7NaNyetAM52oD 8W2Gl8s+CNf0z1wY72dIAH9+Q0IXxiqRlCIX9+sn8lc4BgVX/wbT5tyC623t9nZLa5ps YcXg== 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 72si12851635qks.371.2017.09.12.02.00.43; Tue, 12 Sep 2017 02:00:44 -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 77AB960E63; Tue, 12 Sep 2017 09:00:43 +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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 7E9D860B4F; Tue, 12 Sep 2017 09:00:35 +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 3CA0960BE5; Tue, 12 Sep 2017 09:00:29 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id E7F7360B59 for ; Tue, 12 Sep 2017 09:00:25 +0000 (UTC) Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward105j.mail.yandex.net (Yandex) with ESMTP id C755A1811F2 for ; Tue, 12 Sep 2017 12:00:24 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id YA1yckSaT5-0OAKiC2Q; Tue, 12 Sep 2017 12:00:24 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 7rWY6m5thB-0NZelgXH; Tue, 12 Sep 2017 12:00:23 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 12 Sep 2017 12:00:06 +0300 Message-Id: <1505206806-22774-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505206806-22774-1-git-send-email-odpbot@yandex.ru> References: <1505206806-22774-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 174 Subject: [lng-odp] [PATCH API-NEXT v1 1/1] api: ipsec: rename odp_ipsec_mtu_update to follow odp_ipsec_sa_* pattern 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 All SA-related functions use odp_ipsec_sa_ prefix, except odp_ipsec_mtu_update(). Rename this function to follow this pattern. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 174 (lumag:ipsec-api-mtu) ** https://github.com/Linaro/odp/pull/174 ** Patch: https://github.com/Linaro/odp/pull/174.patch ** Base sha: 7fa8e2c97ed18f8dd6e95cbc78b7e668ccb98869 ** Merge commit sha: 98ae1ad4d82a815eae0dd97dd87cd6c18ff40b5b **/ include/odp/api/spec/ipsec.h | 4 ++-- platform/linux-generic/odp_ipsec.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 7085bc0d..a536009f 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -710,7 +710,7 @@ typedef struct odp_ipsec_sa_param_t { * * This is the maximum length of IP packets that * outbound IPSEC operations may produce. The value may - * be updated later with odp_ipsec_mtu_update(). + * be updated later with odp_ipsec_sa_mtu_update(). */ uint32_t mtu; @@ -1477,7 +1477,7 @@ int odp_ipsec_status(odp_ipsec_status_t *status, odp_event_t event); * @retval 0 On success * @retval <0 On failure */ -int odp_ipsec_mtu_update(odp_ipsec_sa_t sa, uint32_t mtu); +int odp_ipsec_sa_mtu_update(odp_ipsec_sa_t sa, uint32_t mtu); /** * Get user defined SA context pointer diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index c7eeb4ec..04757e78 100644 --- a/platform/linux-generic/odp_ipsec.c +++ b/platform/linux-generic/odp_ipsec.c @@ -147,7 +147,7 @@ int odp_ipsec_status(odp_ipsec_status_t *status, odp_event_t event) return -1; } -int odp_ipsec_mtu_update(odp_ipsec_sa_t sa, uint32_t mtu) +int odp_ipsec_sa_mtu_update(odp_ipsec_sa_t sa, uint32_t mtu) { (void)sa; (void)mtu;