diff mbox

test: performance: return when pkt alloc fails

Message ID 1460365909-15184-1-git-send-email-balakrishna.garapati@linaro.org
State Accepted
Commit 7c27b1e270678a4b7aa1ab9a791a8aea9366b59a
Headers show

Commit Message

Balakrishna Garapati April 11, 2016, 9:11 a.m. UTC
Resolving https://bugs.linaro.org/show_bug.cgi?id=2135 by return
over packet allocation failure.

Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org>
---
 test/performance/odp_crypto.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Balakrishna Garapati April 21, 2016, 12:51 p.m. UTC | #1
ping

/Krishna

On 11 April 2016 at 11:11, Balakrishna Garapati <
balakrishna.garapati@linaro.org> wrote:

> Resolving https://bugs.linaro.org/show_bug.cgi?id=2135 by return

> over packet allocation failure.

>

> Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org>

> ---

>  test/performance/odp_crypto.c | 1 +

>  1 file changed, 1 insertion(+)

>

> diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c

> index fe1c7b4..ca461e5 100644

> --- a/test/performance/odp_crypto.c

> +++ b/test/performance/odp_crypto.c

> @@ -550,6 +550,7 @@ run_measure_one(crypto_args_t *cargs,

>                                 if (pkt == ODP_PACKET_INVALID) {

>                                         app_err("failed to allocate

> buffer\n");

>                                         rc = -1;

> +                                       return rc;

>                                 } else {

>                                         void *mem = odp_packet_data(pkt);

>

> --

> 1.9.1

>

>
Maxim Uvarov April 21, 2016, 1:49 p.m. UTC | #2
That will go after 1.9 release.

Maxim.

On 04/21/16 15:51, Krishna Garapati wrote:
> ping
>
> /Krishna
>
> On 11 April 2016 at 11:11, Balakrishna Garapati 
> <balakrishna.garapati@linaro.org 
> <mailto:balakrishna.garapati@linaro.org>> wrote:
>
>     Resolving https://bugs.linaro.org/show_bug.cgi?id=2135 by return
>     over packet allocation failure.
>
>     Signed-off-by: Balakrishna Garapati
>     <balakrishna.garapati@linaro.org
>     <mailto:balakrishna.garapati@linaro.org>>
>     ---
>      test/performance/odp_crypto.c | 1 +
>      1 file changed, 1 insertion(+)
>
>     diff --git a/test/performance/odp_crypto.c
>     b/test/performance/odp_crypto.c
>     index fe1c7b4..ca461e5 100644
>     --- a/test/performance/odp_crypto.c
>     +++ b/test/performance/odp_crypto.c
>     @@ -550,6 +550,7 @@ run_measure_one(crypto_args_t *cargs,
>                                     if (pkt == ODP_PACKET_INVALID) {
>                                             app_err("failed to
>     allocate buffer\n");
>                                             rc = -1;
>     +                                       return rc;
>                                     } else {
>                                             void *mem =
>     odp_packet_data(pkt);
>
>     --
>     1.9.1
>
>
Maxim Uvarov April 25, 2016, 1:15 p.m. UTC | #3
On 04/11/16 12:11, Balakrishna Garapati wrote:
> Resolving https://bugs.linaro.org/show_bug.cgi?id=2135 by return
> over packet allocation failure.
>
> Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org>
> ---
>   test/performance/odp_crypto.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c
> index fe1c7b4..ca461e5 100644
> --- a/test/performance/odp_crypto.c
> +++ b/test/performance/odp_crypto.c
> @@ -550,6 +550,7 @@ run_measure_one(crypto_args_t *cargs,
>   				if (pkt == ODP_PACKET_INVALID) {
>   					app_err("failed to allocate buffer\n");
>   					rc = -1;
> +					return rc;
that has to be simple:
     return -1;

you can add my
  Reviewed-by: Maxim Uvarov <maxim.uvarov@linaro.org>

for updated version.

Maxim.

>   				} else {
>   					void *mem = odp_packet_data(pkt);
>
Mike Holmes May 3, 2016, 9:33 p.m. UTC | #4
merged

Krishna, I made Maxims update and added his reviewed by for you

On 25 April 2016 at 09:15, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:

> On 04/11/16 12:11, Balakrishna Garapati wrote:

>

>> Resolving https://bugs.linaro.org/show_bug.cgi?id=2135 by return

>> over packet allocation failure.

>>

>> Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org>

>> ---

>>   test/performance/odp_crypto.c | 1 +

>>   1 file changed, 1 insertion(+)

>>

>> diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c

>> index fe1c7b4..ca461e5 100644

>> --- a/test/performance/odp_crypto.c

>> +++ b/test/performance/odp_crypto.c

>> @@ -550,6 +550,7 @@ run_measure_one(crypto_args_t *cargs,

>>                                 if (pkt == ODP_PACKET_INVALID) {

>>                                         app_err("failed to allocate

>> buffer\n");

>>                                         rc = -1;

>> +                                       return rc;

>>

> that has to be simple:

>     return -1;

>

> you can add my

>  Reviewed-by: Maxim Uvarov <maxim.uvarov@linaro.org>

>

> for updated version.

>

> Maxim.

>

>                                 } else {

>>                                         void *mem = odp_packet_data(pkt);

>>

>>

>

> _______________________________________________

> lng-odp mailing list

> lng-odp@lists.linaro.org

> https://lists.linaro.org/mailman/listinfo/lng-odp

>




-- 
Mike Holmes
Technical Manager - Linaro Networking Group
Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs
"Work should be fun and collaborative, the rest follows"
Balakrishna Garapati May 4, 2016, 11:32 a.m. UTC | #5
Thanks mike, I missed the comment received. my bad.

/Krishna

On 3 May 2016 at 23:33, Mike Holmes <mike.holmes@linaro.org> wrote:

> merged

>

> Krishna, I made Maxims update and added his reviewed by for you

>

> On 25 April 2016 at 09:15, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:

>

>> On 04/11/16 12:11, Balakrishna Garapati wrote:

>>

>>> Resolving https://bugs.linaro.org/show_bug.cgi?id=2135 by return

>>> over packet allocation failure.

>>>

>>> Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org>

>>> ---

>>>   test/performance/odp_crypto.c | 1 +

>>>   1 file changed, 1 insertion(+)

>>>

>>> diff --git a/test/performance/odp_crypto.c

>>> b/test/performance/odp_crypto.c

>>> index fe1c7b4..ca461e5 100644

>>> --- a/test/performance/odp_crypto.c

>>> +++ b/test/performance/odp_crypto.c

>>> @@ -550,6 +550,7 @@ run_measure_one(crypto_args_t *cargs,

>>>                                 if (pkt == ODP_PACKET_INVALID) {

>>>                                         app_err("failed to allocate

>>> buffer\n");

>>>                                         rc = -1;

>>> +                                       return rc;

>>>

>> that has to be simple:

>>     return -1;

>>

>> you can add my

>>  Reviewed-by: Maxim Uvarov <maxim.uvarov@linaro.org>

>>

>> for updated version.

>>

>> Maxim.

>>

>>                                 } else {

>>>                                         void *mem = odp_packet_data(pkt);

>>>

>>>

>>

>> _______________________________________________

>> lng-odp mailing list

>> lng-odp@lists.linaro.org

>> https://lists.linaro.org/mailman/listinfo/lng-odp

>>

>

>

>

> --

> Mike Holmes

> Technical Manager - Linaro Networking Group

> Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs

> "Work should be fun and collaborative, the rest follows"

>

>

>
diff mbox

Patch

diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c
index fe1c7b4..ca461e5 100644
--- a/test/performance/odp_crypto.c
+++ b/test/performance/odp_crypto.c
@@ -550,6 +550,7 @@  run_measure_one(crypto_args_t *cargs,
 				if (pkt == ODP_PACKET_INVALID) {
 					app_err("failed to allocate buffer\n");
 					rc = -1;
+					return rc;
 				} else {
 					void *mem = odp_packet_data(pkt);