diff mbox

linux-generic: crypto: use packet allocator rather than buffer allocator

Message ID 1419351710-7854-1-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer Dec. 23, 2014, 4:21 p.m. UTC
---
 platform/linux-generic/odp_crypto.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Mike Holmes Jan. 7, 2015, 7:58 p.m. UTC | #1
Is this headed for 0.7.0 - Bill is anyone reviewing it ?

On 23 December 2014 at 11:21, Bill Fischofer <bill.fischofer@linaro.org>
wrote:

> ---
>  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 13c5556..345c22a 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))
>                         abort();
> --
> 2.1.0
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
Bill Fischofer Jan. 7, 2015, 9:58 p.m. UTC | #2
If should be fine for 0.7.0

On Wed, Jan 7, 2015 at 1:58 PM, Mike Holmes <mike.holmes@linaro.org> wrote:

> Is this headed for 0.7.0 - Bill is anyone reviewing it ?
>
> On 23 December 2014 at 11:21, Bill Fischofer <bill.fischofer@linaro.org>
> wrote:
>
>> ---
>>  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 13c5556..345c22a 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))
>>                         abort();
>> --
>> 2.1.0
>>
>>
>> _______________________________________________
>> lng-odp mailing list
>> lng-odp@lists.linaro.org
>> http://lists.linaro.org/mailman/listinfo/lng-odp
>>
>
>
>
> --
> *Mike Holmes*
> Linaro  Sr Technical Manager
> LNG - ODP
>
diff mbox

Patch

diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c
index 13c5556..345c22a 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))
 			abort();