From patchwork Fri Jan 23 11:42: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: 43621 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AAD11240D9 for ; Fri, 23 Jan 2015 11:43:57 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id bs8sf1109021wib.1 for ; Fri, 23 Jan 2015 03:43:57 -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=UdG60jjQW5sK3FEUW4m3SRYWAiKcxx1B7BLFXElYZQWw8HRjN527mwui+Z3yBhLVqI /ju+RE9q88pVPQDMMfuTK3FXe2NSKuXp77Yd4U6dBFYsBZ3/OKqOP8O3jOFQozRx8EIa 8gcuuOX0Qu0pNKgfhI1IfDQrzYNsqPFz8JFI7BqdZ3VjehICQQ82ZYQhpo1ckmSqXnwj fid+8vMe2enQvnOvCPFCDlVB0uwcpXQOE6lF20yhnf0qkjYU/nz5GPmJcmOKY5aalfZG FrL4hDh3X/2S8UfsKcdL8a98i8dzmk8mTtqhdUBjULIeBh7eJBP9Gncx9AJGQk3xTwwT 31xg== X-Gm-Message-State: ALoCoQlHoo7oOOok6+COzwMCFKX2f14J/0FhSijZJXHJbrrlvbxQeiCkI6fV64bQ/0VKlB2/vAJm X-Received: by 10.113.5.170 with SMTP id cn10mr6796lbd.21.1422013436972; Fri, 23 Jan 2015 03:43:56 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.84 with SMTP id v20ls190853laz.57.gmail; Fri, 23 Jan 2015 03:43:56 -0800 (PST) X-Received: by 10.112.151.228 with SMTP id ut4mr4496505lbb.77.1422013436764; Fri, 23 Jan 2015 03:43:56 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id j8si1154225laa.43.2015.01.23.03.43.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 03:43:56 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id gf13so2640592lab.8 for ; Fri, 23 Jan 2015 03:43:56 -0800 (PST) X-Received: by 10.152.234.35 with SMTP id ub3mr6916368lac.70.1422013436690; Fri, 23 Jan 2015 03:43:56 -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 c8csp220993lbb; Fri, 23 Jan 2015 03:43:55 -0800 (PST) X-Received: by 10.140.91.201 with SMTP id z67mr12395481qgd.27.1422013435059; Fri, 23 Jan 2015 03:43:55 -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 w48si1610362qge.63.2015.01.23.03.43.53 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 23 Jan 2015 03:43:55 -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 1YEceV-0003TL-IO; Fri, 23 Jan 2015 11:43:51 +0000 Received: from mail-qc0-f173.google.com ([209.85.216.173]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YEcdz-0003Nb-Fn for lng-odp@lists.linaro.org; Fri, 23 Jan 2015 11:43:19 +0000 Received: by mail-qc0-f173.google.com with SMTP id m20so5791071qcx.4 for ; Fri, 23 Jan 2015 03:43:14 -0800 (PST) X-Received: by 10.140.82.47 with SMTP id g44mr12150388qgd.42.1422013394355; Fri, 23 Jan 2015 03:43:14 -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 f7sm1182892qaq.42.2015.01.23.03.43.12 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Jan 2015 03:43:13 -0800 (PST) From: Petri Savolainen To: lng-odp@lists.linaro.org Date: Fri, 23 Jan 2015 13:42:19 +0200 Message-Id: <1422013344-6655-12-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1422013344-6655-1-git-send-email-petri.savolainen@linaro.org> References: <1422013344-6655-1-git-send-email-petri.savolainen@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [PATCH v4 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: 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.49 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();