From patchwork Tue Nov 14 20: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: 118890 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3468485qgn; Tue, 14 Nov 2017 12:08:08 -0800 (PST) X-Google-Smtp-Source: AGs4zMYYSXgiIedPYAJHy2aj+Thb9l8NbjudPe2JCRegTrhaqHh4ou7mV/q4Jn+gIzSL+vT+xu/1 X-Received: by 10.237.54.40 with SMTP id e37mr22808025qtb.41.1510690088274; Tue, 14 Nov 2017 12:08:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510690088; cv=none; d=google.com; s=arc-20160816; b=AaQYNmSSY+0CMNmDgulZM9xTZdzGGogJ3oHFpmjhrqS3UAzsA2/Fu/6ShIYYEiPYnD DkigALmlW38d3+S0/W1DztFvfTvU3xw4UvzDajbVzk37mwSsgutzA89UfhKsMkyQUA8P XA/BjjW2K27uNwZ6AI2HUyGbZlhQmjFiwxp23pYPhNHY3ATJovykqIuID1XMnv32R/g9 QiCIcuxBiiW+8tHI6wvaJrb6n9YFdubzYbe7+TI8+m00H7Kyujjv3wyAqpuQswGmqV8J WC4bqi/cKrjfN99J++7fc5WDD+rSChjYGLEyLU81rwXFvlJQgToRpGQGpv9xARahEyg7 ihxQ== 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=Ec2rV+a08DU4EYAHWYE1H/hNcElLbL91RcavzsLuk80=; b=cqExGj8jS66mPaj1LwWuBqih8HDvhH6n1Q79Dyb7LxI1gAxVxZKuRUpp9BKkQrxQd0 of+GU14OyyR5SSTW0uuBQBjNzwtGRVcME81Bz/NnaVKRCQKaWOMCE9KJM3nCZlqSxkmB Ii0zM5Ry2X3Vu0Wy4ZPXh+hTFIOZ5QD80XWFfogvbxKQNAtST/QwDLNmKeKZ9y5Vlz0f BEePZopN7MMzj+aKclcutB5LN+34xXoCBFY/WSIDzr/n3vt3oNjH5/mZPl4rsCPTmTPP R3WFFOFtiYZGfOPYCsXs9j0JKljAHzIQgSSRF0c2slLGNnXXa/D9HAOFPhD/FLCYkGEi W6EA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id 75si1632819qkb.443.2017.11.14.12.08.08; Tue, 14 Nov 2017 12:08:08 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 E197D606B3; Tue, 14 Nov 2017 20:08:07 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 7298860841; Tue, 14 Nov 2017 20:01:21 +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 78642607C5; Tue, 14 Nov 2017 20:00:58 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 7A9FC60639 for ; Tue, 14 Nov 2017 20:00:19 +0000 (UTC) Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::24]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 308B47822CD for ; Tue, 14 Nov 2017 23:00:17 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback10o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Ncse7CJkQA-0H2iVrFN; Tue, 14 Nov 2017 23:00:17 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ZsDLds7hfB-0Gp0URaj; Tue, 14 Nov 2017 23:00:16 +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, 14 Nov 2017 23:00:11 +0300 Message-Id: <1510689611-17861-11-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510689611-17861-1-git-send-email-odpbot@yandex.ru> References: <1510689611-17861-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 288 Subject: [lng-odp] [PATCH API-NEXT v8 10/10] linux-gen: drop unnecessary odp_crypto_internal include 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 Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 288 (lumag:gmac) ** https://github.com/Linaro/odp/pull/288 ** Patch: https://github.com/Linaro/odp/pull/288.patch ** Base sha: ba93e355ddf151215aa18b59cbfca08fe175fe65 ** Merge commit sha: 8363c3a4073075d0f3dd68864b9a33819005aab4 **/ platform/linux-generic/include/odp_packet_internal.h | 1 - platform/linux-generic/odp_ipsec.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index e62854b1e..1ebe46901 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -25,7 +25,6 @@ extern "C" { #include #include #include -#include #include #include #include diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index d54ec3286..0ebc65341 100644 --- a/platform/linux-generic/odp_ipsec.c +++ b/platform/linux-generic/odp_ipsec.c @@ -264,7 +264,7 @@ static ipsec_sa_t *ipsec_in_single(odp_packet_t pkt, unsigned stats_length; uint16_t ipsec_offset; /**< Offset of IPsec header from buffer start */ - uint8_t iv[MAX_IV_LEN]; /**< ESP IV storage */ + uint8_t iv[IPSEC_MAX_IV_LEN]; /**< ESP IV storage */ ipsec_aad_t aad; /**< AAD, note ESN is not fully supported */ unsigned hdr_len; /**< Length of IPsec headers */ unsigned trl_len; /**< Length of IPsec trailers */ @@ -628,7 +628,7 @@ static ipsec_sa_t *ipsec_out_single(odp_packet_t pkt, int rc; uint16_t ipsec_offset; /**< Offset of IPsec header from buffer start */ - uint8_t iv[MAX_IV_LEN]; /**< ESP IV storage */ + uint8_t iv[IPSEC_MAX_IV_LEN]; /**< ESP IV storage */ ipsec_aad_t aad; /**< AAD, note ESN is not fully supported */ unsigned hdr_len; /**< Length of IPsec headers */ unsigned trl_len; /**< Length of IPsec trailers */