Message ID | 1420734294-31713-1-git-send-email-bill.fischofer@linaro.org |
---|---|
State | New |
Headers | show |
Alex/Robbie: Can you please review this so it can be included in 0.7.0? Thanks. On Thu, Jan 8, 2015 at 10:24 AM, Bill Fischofer <bill.fischofer@linaro.org> wrote: > Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> > --- > 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 > >
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();
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> --- platform/linux-generic/odp_crypto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)