From patchwork Tue Jan 20 11:18:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 43355 Return-Path: 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 8B5322034D for ; Tue, 20 Jan 2015 11:20:07 +0000 (UTC) Received: by mail-we0-f200.google.com with SMTP id u56sf19638849wes.3 for ; Tue, 20 Jan 2015 03:20:06 -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=k/a3AoZTG/oDR58wbeNdkCfsHPk5Frng2gt2lvLKBNmMDsxap56+Ns8pLQHDNxLSD8 gTBI64z3xRnL5+49VhzrQCemwZEtnGLcrdd02Sm6D6l5keuIEOcEg8OQK0+3cRkaGK6/ Qar2grrWuOgP85G1ifj4UFY0z71ZPR6iQDrFuJqIHq7LZXugEXeeVEN+hhXjuGzGamiM G2zgsC8o/aokSIX5JqImlcZof90Su0lilUbgGz89yzsm4xYT0K+sszrFzyE3nI6PCABi qt8W7jcNB2bAAI9E2hakuAO44MgtBEWRmTXpCmwrOMCNOhwitH53mmEAV8i13ca5Y5+d EQ5g== X-Gm-Message-State: ALoCoQnL8RV/zf+D6pUUBOGUj5LT2I/AmGU8noNIbr2tJjM+/davuD/dmYwE+OZnJ7SHsubh5cBY X-Received: by 10.112.133.98 with SMTP id pb2mr4300072lbb.2.1421752806861; Tue, 20 Jan 2015 03:20:06 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.205 with SMTP id q13ls199070lal.85.gmail; Tue, 20 Jan 2015 03:20:06 -0800 (PST) X-Received: by 10.152.23.98 with SMTP id l2mr37032086laf.46.1421752806719; Tue, 20 Jan 2015 03:20:06 -0800 (PST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id rd1si16309360lac.70.2015.01.20.03.20.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 03:20:06 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id f15so12231690lbj.0 for ; Tue, 20 Jan 2015 03:20:06 -0800 (PST) X-Received: by 10.112.90.170 with SMTP id bx10mr37351611lbb.69.1421752806598; Tue, 20 Jan 2015 03:20:06 -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 c8csp1380934lbb; Tue, 20 Jan 2015 03:20:05 -0800 (PST) X-Received: by 10.229.212.67 with SMTP id gr3mr56703903qcb.6.1421752801164; Tue, 20 Jan 2015 03:20:01 -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 a8si21698935qgf.64.2015.01.20.03.19.59 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 20 Jan 2015 03:20:01 -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 1YDWqj-0006MP-DG; Tue, 20 Jan 2015 11:19:57 +0000 Received: from mail-qc0-f179.google.com ([209.85.216.179]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YDWqG-0006FN-8L for lng-odp@lists.linaro.org; Tue, 20 Jan 2015 11:19:28 +0000 Received: by mail-qc0-f179.google.com with SMTP id w7so9846215qcr.10 for ; Tue, 20 Jan 2015 03:19:23 -0800 (PST) X-Received: by 10.224.23.6 with SMTP id p6mr11534840qab.55.1421752763107; Tue, 20 Jan 2015 03:19: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 t2sm14975907qae.6.2015.01.20.03.19.20 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 03:19:22 -0800 (PST) From: Petri Savolainen To: lng-odp@lists.linaro.org Date: Tue, 20 Jan 2015 13:18:07 +0200 Message-Id: <1421752692-24439-12-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1421752692-24439-1-git-send-email-petri.savolainen@linaro.org> References: <1421752692-24439-1-git-send-email-petri.savolainen@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [PATCH v2 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.217.169 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();