Message ID | 1421853343-22138-12-git-send-email-petri.savolainen@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBCGMJF6NVUCBBLEG76SQKGQEZTWS2KY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A67AE218DB for <linaro@patches.linaro.org>; Wed, 21 Jan 2015 15:18:05 +0000 (UTC) Received: by mail-we0-f200.google.com with SMTP id u56sf23406218wes.3 for <linaro@patches.linaro.org>; Wed, 21 Jan 2015 07:18:04 -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=ZRFxETO2cpylu4NZR8UMYWvfpmsxIXUKBJ8P1VJ0Ex5nljJxvVOj3XtiDg8aER6k4E j/Xwb7SZ1fTsXqablm5bTT7S0N09U/NbWVsiYxKwz9AJdldsk8z7gQ3X+p3J2i6m23iR w3SjZ7sSCUi1CMPw7oMbsHofN3bd17UEpMLXQkGJ8R2gEDrjBSvZjww3z9CGCq4nXc/i 1QnYWUABLdevcGtKQ6Bj9dsdKWflAJZRsM5ou65yvDg9YVkYXAZEsl2dKEHY5QTo6WBA t+cladJLzfPA7s23d1guoChIk7rVwC3RHrilsxyIu2/1Byzu2ne9Zn0Fh43/SIYbWDtn o7dw== X-Gm-Message-State: ALoCoQl8Z8gy86665swNmG8eb/zZS7dRaX+IMzGoEKhOugEuSuNhXW8YrwiBsybQPuHmRzxGxHKc X-Received: by 10.152.37.130 with SMTP id y2mr327081laj.8.1421853484879; Wed, 21 Jan 2015 07:18:04 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.97 with SMTP id j1ls42633laj.28.gmail; Wed, 21 Jan 2015 07:18:04 -0800 (PST) X-Received: by 10.152.2.8 with SMTP id 8mr43602538laq.97.1421853484737; Wed, 21 Jan 2015 07:18:04 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id pw5si18147024lbb.93.2015.01.21.07.18.04 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Jan 2015 07:18:04 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id u14so3317382lbd.2 for <patchwork-forward@linaro.org>; Wed, 21 Jan 2015 07:18:04 -0800 (PST) X-Received: by 10.152.27.8 with SMTP id p8mr38177121lag.69.1421853484656; Wed, 21 Jan 2015 07:18:04 -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 c8csp1810375lbb; Wed, 21 Jan 2015 07:18:03 -0800 (PST) X-Received: by 10.224.76.71 with SMTP id b7mr45958557qak.33.1421853482996; Wed, 21 Jan 2015 07:18:02 -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 t88si606746qga.10.2015.01.21.07.18.01 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 21 Jan 2015 07:18:02 -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 <lng-odp-bounces@lists.linaro.org>) id 1YDx2d-00085v-3T; Wed, 21 Jan 2015 15:17:59 +0000 Received: from mail-qc0-f172.google.com ([209.85.216.172]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <petri.savolainen@linaro.org>) id 1YDx29-0007xT-UU for lng-odp@lists.linaro.org; Wed, 21 Jan 2015 15:17:29 +0000 Received: by mail-qc0-f172.google.com with SMTP id i8so27730298qcq.3 for <lng-odp@lists.linaro.org>; Wed, 21 Jan 2015 07:17:24 -0800 (PST) X-Received: by 10.140.95.105 with SMTP id h96mr51768274qge.64.1421853443654; Wed, 21 Jan 2015 07:17:23 -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 91sm415056qgf.1.2015.01.21.07.17.21 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Jan 2015 07:17:22 -0800 (PST) From: Petri Savolainen <petri.savolainen@linaro.org> To: lng-odp@lists.linaro.org Date: Wed, 21 Jan 2015 17:15:38 +0200 Message-Id: <1421853343-22138-12-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1421853343-22138-1-git-send-email-petri.savolainen@linaro.org> References: <1421853343-22138-1-git-send-email-petri.savolainen@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [PATCH v3 11/16] 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: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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.217.171 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 |
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();
Use packet alloc API to allocate a packet instead of buffer alloc API. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> --- platform/linux-generic/odp_crypto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)