From patchwork Thu Jan 15 15:40:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 43212 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EDCE7240BA for ; Thu, 15 Jan 2015 15:41:56 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id y19sf8315412wgg.1 for ; Thu, 15 Jan 2015 07:41:56 -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=D2CapXS58o4DALnkDBLV4f8GX93R/c+EIMd0Hm0MRgw=; b=gzthDPn0Ssa5VTkMvK9g0Xx1spxm5pG3IWOcJWS8ciE4/C0uydgANvD+e8VYDbyyxQ k7B2+pXvG+z16fQc5V7cR3XPZRQnMJlVGNRcVK5pXRto4sVbG14vszh9b+6MjZtGh0Hp Daw+cxP/MTvIWSaQGn/VKiqnlztcQpRbPZMzJhL/e1YgLqr+ZHLgYQJ7tn3cJSkbVM4o y13t9YAw4h4jAxtXb0k+iHbYnJXWzhnaXyuxeXSDntZHN/hTekbzEDr+ZWfFL+NSzFND KW053ma/eYb4t55BPqj6xDzUz1kFK5XpbtiTD83YB3Tur/7TPAIOOlCxxLjoN0kx/4hY jnhw== X-Gm-Message-State: ALoCoQkaKxc4+FMtyUNarqqXetZC/x9B2axDMTXy23AQAGj+DMsxGl80RZWVBa24VKnYDhxFLmCQ X-Received: by 10.180.108.101 with SMTP id hj5mr1463296wib.3.1421336516238; Thu, 15 Jan 2015 07:41:56 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.70 with SMTP id be6ls253290lab.42.gmail; Thu, 15 Jan 2015 07:41:56 -0800 (PST) X-Received: by 10.152.19.7 with SMTP id a7mr10546045lae.16.1421336516013; Thu, 15 Jan 2015 07:41:56 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id dd4si1814507lad.13.2015.01.15.07.41.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Jan 2015 07:41:56 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id hs14so14272599lab.11 for ; Thu, 15 Jan 2015 07:41:55 -0800 (PST) X-Received: by 10.152.197.5 with SMTP id iq5mr10581874lac.6.1421336515859; Thu, 15 Jan 2015 07:41:55 -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.9.200 with SMTP id c8csp22034lbb; Thu, 15 Jan 2015 07:41:55 -0800 (PST) X-Received: by 10.224.30.74 with SMTP id t10mr17534960qac.8.1421336514509; Thu, 15 Jan 2015 07:41:54 -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 b41si2396915qge.8.2015.01.15.07.41.53 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 15 Jan 2015 07:41:54 -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 1YBmYQ-0007WH-La; Thu, 15 Jan 2015 15:41:50 +0000 Received: from mail-qg0-f53.google.com ([209.85.192.53]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YBmY7-0007Q4-A4 for lng-odp@lists.linaro.org; Thu, 15 Jan 2015 15:41:31 +0000 Received: by mail-qg0-f53.google.com with SMTP id a108so3782413qge.12 for ; Thu, 15 Jan 2015 07:41:26 -0800 (PST) X-Received: by 10.224.114.81 with SMTP id d17mr16900465qaq.27.1421336485720; Thu, 15 Jan 2015 07:41:25 -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 g12sm1563340qay.44.2015.01.15.07.41.22 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Jan 2015 07:41:24 -0800 (PST) From: Petri Savolainen To: lng-odp@lists.linaro.org Date: Thu, 15 Jan 2015 17:40:19 +0200 Message-Id: <1421336423-19382-12-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1421336423-19382-1-git-send-email-petri.savolainen@linaro.org> References: <1421336423-19382-1-git-send-email-petri.savolainen@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [PATCH 11/15] 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.52 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 463f7b4..5ae2177 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -358,7 +358,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();