diff mbox

[v4,11/16] linux-generic: crypto: Use packet alloc for packet

Message ID 1422013344-6655-12-git-send-email-petri.savolainen@linaro.org
State Superseded
Headers show

Commit Message

Petri Savolainen Jan. 23, 2015, 11:42 a.m. UTC
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(-)
diff mbox

Patch

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();