From patchwork Tue Dec 23 16:21:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 42603 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1A2A026C92 for ; Tue, 23 Dec 2014 16:22:17 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id gd6sf4232763lab.0 for ; Tue, 23 Dec 2014 08:22: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=/6EoTrK/GoW97N1C9yLEgzCYRRL+tYb8D8xRLUqLVAc=; b=lXvSy7L/vVPXEqQC93oS9VsviNSsMwRUmEkzM2xyswvKS4XlHcj16Z+Y5pqnVTBLhC TAhYqVEHC4nvK/tnuCFqnhtIIVTmfTLHMwFhvU+60Xd4Czceca9a//xGSzEO+ZO5ovKq 1qDaWawv+WVTu1wp6Vns9S1i5CrbJSCsPrISjGDGqyRTCM7tbz1T2DSiTh6+hL1ZFc1/ 8V26hw+eKntpuK7dexWh1cD8MPL8TLFxDUbH7hnUtaRdWOSYFgocLl5FrjEO8AGyf+/X +8cmjWqAe/26W92N8ZEIeCkET/O9qR/2m1sNca6hn+b15sb1jH6AsMsXbPlpzkRXTYu/ CHtQ== X-Gm-Message-State: ALoCoQkmfBn/dzNTqFdtW2jvrJKOCMRWSYF7G+yXFwN8ZGi1fTcUlXTpkRiSycWKLxf82uhDtS4T X-Received: by 10.180.81.39 with SMTP id w7mr2914695wix.1.1419351736029; Tue, 23 Dec 2014 08:22:16 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.137 with SMTP id 9ls1037378lau.26.gmail; Tue, 23 Dec 2014 08:22:15 -0800 (PST) X-Received: by 10.152.120.97 with SMTP id lb1mr20497504lab.76.1419351735866; Tue, 23 Dec 2014 08:22:15 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id v2si22502192lbb.56.2014.12.23.08.22.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Dec 2014 08:22:15 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id pn19so5711008lab.23 for ; Tue, 23 Dec 2014 08:22:15 -0800 (PST) X-Received: by 10.152.234.35 with SMTP id ub3mr29177130lac.70.1419351735739; Tue, 23 Dec 2014 08:22:15 -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.142.69 with SMTP id ru5csp1377170lbb; Tue, 23 Dec 2014 08:22:15 -0800 (PST) X-Received: by 10.180.24.167 with SMTP id v7mr43801554wif.5.1419351735152; Tue, 23 Dec 2014 08:22:15 -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 p10si15442689wjx.72.2014.12.23.08.22.13 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 23 Dec 2014 08:22:15 -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 1Y3SDr-00074y-3U; Tue, 23 Dec 2014 16:22:11 +0000 Received: from mail-oi0-f54.google.com ([209.85.218.54]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y3SDi-00074e-Qy for lng-odp@lists.linaro.org; Tue, 23 Dec 2014 16:22:02 +0000 Received: by mail-oi0-f54.google.com with SMTP id u20so14254295oif.13 for ; Tue, 23 Dec 2014 08:21:57 -0800 (PST) X-Received: by 10.202.46.196 with SMTP id u187mr15874188oiu.19.1419351717288; Tue, 23 Dec 2014 08:21:57 -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 o93sm10571632oik.21.2014.12.23.08.21.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Dec 2014 08:21:56 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 23 Dec 2014 10:21:50 -0600 Message-Id: <1419351710-7854-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.215.50 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 --- 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();