diff mbox

[v5,11/17] linux-generic: crypto: Use packet alloc for packet

Message ID 1422277551-16417-12-git-send-email-petri.savolainen@linaro.org
State Accepted
Commit 98ab2f0c459ea0016071f6931c0e2d7957850ecd
Headers show

Commit Message

Petri Savolainen Jan. 26, 2015, 1:05 p.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();