From patchwork Thu Jan 8 16:24:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 42876 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 507EB26CD8 for ; Thu, 8 Jan 2015 16:25:17 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id a1sf1939139wgh.3 for ; Thu, 08 Jan 2015 08:25:16 -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: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=Nm1ClMnh2Q2hFnu8HozghvZKVv0NdFn2yNjfODm2Qe4=; b=b2STPj69zdH//rflE9/aBquz3N2nWNRGf4vx9YXRteZNCVZj1BXzy/bNQFVoYz0+bY EZtgRIKb7TZiAE3lbaa53xdeO/Gw6bQDHhzV7ahgWW2qeb+paa+nIodze3SX1s4alz02 AEW9I3rswze2w8YFTVhUFTJAD7ldXsWy1v38zDURoPgDCbxdk9axf3AXbeFkC6mhVJaX zH23ucPhBj68Sm4TEsnpTEF07K0A1XE0A8YMnb19M9viGFXqwJVnWnC5L7THf7w79VZN L26y2Ji2XPgAXsGj7lPef4faP3Vn0g/hFyguSQafdGRC+DsJhSoz+Toi2aOO+ckzWzCZ F9gg== X-Gm-Message-State: ALoCoQkXbkFxOM2ejwTUuDl3HKB+c5U5R1L20tCVI1+YQmFpnuFKO98E8c6so33CulKER6kkRtQT X-Received: by 10.112.141.98 with SMTP id rn2mr1341387lbb.2.1420734316525; Thu, 08 Jan 2015 08:25:16 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.9 with SMTP id o9ls352808lah.29.gmail; Thu, 08 Jan 2015 08:25:16 -0800 (PST) X-Received: by 10.112.147.71 with SMTP id ti7mr15089016lbb.87.1420734316355; Thu, 08 Jan 2015 08:25:16 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id un3si9161711lbb.21.2015.01.08.08.25.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Jan 2015 08:25:16 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id p9so3756936lbv.7 for ; Thu, 08 Jan 2015 08:25:16 -0800 (PST) X-Received: by 10.152.6.132 with SMTP id b4mr15358125laa.59.1420734316114; Thu, 08 Jan 2015 08:25:16 -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 c8csp43533lbb; Thu, 8 Jan 2015 08:25:15 -0800 (PST) X-Received: by 10.140.28.200 with SMTP id 66mr16317673qgz.16.1420734314379; Thu, 08 Jan 2015 08:25:14 -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 y90si7591088qgy.6.2015.01.08.08.25.13 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 08 Jan 2015 08:25:14 -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 1Y9FtW-00019U-Mj; Thu, 08 Jan 2015 16:25:10 +0000 Received: from mail-ob0-f171.google.com ([209.85.214.171]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y9FtR-00016l-Jg for lng-odp@lists.linaro.org; Thu, 08 Jan 2015 16:25:05 +0000 Received: by mail-ob0-f171.google.com with SMTP id uz6so8892540obc.2 for ; Thu, 08 Jan 2015 08:25:00 -0800 (PST) X-Received: by 10.202.211.10 with SMTP id k10mr5975541oig.124.1420734300215; Thu, 08 Jan 2015 08:25:00 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id d3sm3015998oig.3.2015.01.08.08.24.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jan 2015 08:24:59 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 8 Jan 2015 10:24:54 -0600 Message-Id: <1420734294-31713-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: crypto patch Subject: [lng-odp] [PATCH] linux-generic: crypto: use packet allocator rather than buffer allocator 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: bill.fischofer@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.217.176 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 Signed-off-by: Bill Fischofer --- 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 13c5556..345c22a 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)) abort();