From patchwork Mon Jan 26 13:05:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 43748 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f197.google.com (mail-we0-f197.google.com [74.125.82.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1370F23FFF for ; Mon, 26 Jan 2015 13:07:37 +0000 (UTC) Received: by mail-we0-f197.google.com with SMTP id l61sf4201478wev.0 for ; Mon, 26 Jan 2015 05:07:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=8AtLxkLgwKEdyFmSgqYNcWKssIy1MWfVrpqxnFkNEw8=; b=Z3yHGLXIaUZVZoVaBkAp3DZ+cSrhFl80C/Noaz+gJcJyQ7eDWQb036rURyfD7mPKm7 tK+Rm9iDxjqgDyIVPYwwus1wmRhACSHUablgKDO3HroenetsLZhGltCOgHFzGG0x8+lc CK6PZrhRquX1YwCLhTgCJA0pBtBnId2AiR6PyA/MIkacbP8bWXQKF7emWYGbdv5DYRjf /G3KDdnXcKIon26luwbbce3G4AFnWno0yVLlL440hYAdqYQxUCGDjLQiifKWL4UWSjW3 HhCdXo1suW1TxPHUgWRbfwZLU8kYdG65vKyUN0GcE4pWr/icFDF1WN58AQjYzhMWtc28 iOJg== X-Gm-Message-State: ALoCoQmot4txR3YCqMMaHCUd80h7N/Y/uolvdERlkpiJ6NZan0oCkXo/LGgQzaOhcFod9DCbYHwv X-Received: by 10.113.5.170 with SMTP id cn10mr1231722lbd.21.1422277656341; Mon, 26 Jan 2015 05:07:36 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.13 with SMTP id n13ls79967laa.80.gmail; Mon, 26 Jan 2015 05:07:36 -0800 (PST) X-Received: by 10.152.37.165 with SMTP id z5mr1536745laj.88.1422277656195; Mon, 26 Jan 2015 05:07:36 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id ji10si8980531lbc.54.2015.01.26.05.07.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 Jan 2015 05:07:36 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id pv20so7454472lab.7 for ; Mon, 26 Jan 2015 05:07:36 -0800 (PST) X-Received: by 10.152.3.70 with SMTP id a6mr21059063laa.71.1422277656056; Mon, 26 Jan 2015 05:07:36 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp774383lbj; Mon, 26 Jan 2015 05:07:35 -0800 (PST) X-Received: by 10.224.23.6 with SMTP id p6mr42286653qab.55.1422277654660; Mon, 26 Jan 2015 05:07:34 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id j49si12985780qgd.115.2015.01.26.05.07.33 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 26 Jan 2015 05:07:34 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YFjO7-0004xf-IH; Mon, 26 Jan 2015 13:07:31 +0000 Received: from mail-qg0-f41.google.com ([209.85.192.41]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YFjNI-0004ln-Ko for lng-odp@lists.linaro.org; Mon, 26 Jan 2015 13:06:40 +0000 Received: by mail-qg0-f41.google.com with SMTP id q108so6603974qgd.0 for ; Mon, 26 Jan 2015 05:06:35 -0800 (PST) X-Received: by 10.140.89.18 with SMTP id u18mr38583338qgd.20.1422277595443; Mon, 26 Jan 2015 05:06:35 -0800 (PST) Received: from mcpro03.emea.nsn-net.net (ec2-23-23-178-99.compute-1.amazonaws.com. [23.23.178.99]) by mx.google.com with ESMTPSA id a1sm4972929qab.28.2015.01.26.05.06.33 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 Jan 2015 05:06:34 -0800 (PST) From: Petri Savolainen To: lng-odp@lists.linaro.org Date: Mon, 26 Jan 2015 15:05:45 +0200 Message-Id: <1422277551-16417-12-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1422277551-16417-1-git-send-email-petri.savolainen@linaro.org> References: <1422277551-16417-1-git-send-email-petri.savolainen@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [PATCH v5 11/17] linux-generic: crypto: Use packet alloc for packet X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: petri.savolainen@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Use packet alloc API to allocate a packet instead of buffer alloc API. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_crypto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 0a37878..d604dea 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -363,7 +363,8 @@ odp_crypto_operation(odp_crypto_op_params_t *params, if (ODP_PACKET_INVALID == params->out_pkt) if (ODP_BUFFER_POOL_INVALID != session->output_pool) params->out_pkt = - odp_buffer_alloc(session->output_pool); + odp_packet_alloc(session->output_pool, + odp_packet_len(params->pkt)); if (params->pkt != params->out_pkt) { if (odp_unlikely(ODP_PACKET_INVALID == params->out_pkt)) ODP_ABORT();